Sponsored Content
Operating Systems AIX I cannot find dsn and TNSNAMES.ora on UNIX Post 302999998 by bakunin on Sunday 2nd of July 2017 02:12:42 AM
Old 07-02-2017
Quote:
Originally Posted by splattty
Assume you mean /etc/resolv.conf for DNS ?
No, he means TNSNAMES.ora which does a similar thing as /etc/hosts but for Oracle databases.

bakunin
 

10 More Discussions You Might Find Interesting

1. HP-UX

KSH to find a ORA error in a log file

Hi: i have writen a script that needs a finishing Pourpouse is to find a particular error in a file after we enter file name and the return msg would describe if >there is a error -> "Contact DBA" if there is no oracle error ->"No ora error found." for the same i have written a script... (6 Replies)
Discussion started by: techbravo
6 Replies

2. Shell Programming and Scripting

Need to capture the service name from tnsnames.ora and create connect string

ghkjkjoj (4 Replies)
Discussion started by: chetankelvin
4 Replies

3. UNIX for Dummies Questions & Answers

find tnsnames.ora in unix

Can we find out what is the location of tnsnames.ora file used by the hp unix. (3 Replies)
Discussion started by: Sudipshib
3 Replies

4. Solaris

maxuprc and maxusers - ORA-27300, ORA-27301, ORA-27302

Hi all, Am intermittently getting the following errors on one of my databases. Errors in file /oracle/HRD/saptrace/background/hrd_psp0_13943.trc: ORA-27300: OS system dependent operation:fork failed with status: 12 ORA-27301: OS failure message: Not enough space ORA-27302:... (1 Reply)
Discussion started by: newbie_01
1 Replies

5. Shell Programming and Scripting

sed: parsing tnsnames.ora

All: Can sombodoy help me out with a sed command? Assume I have the following: PRI = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.3.7)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pri) ... (3 Replies)
Discussion started by: BeefStu
3 Replies

6. UNIX for Advanced & Expert Users

grep all ORA errors except one ORA error

Hi - I am trying to grep all "ORA" errors in a log files.I have to grep all ORA errors except one error for example ORA-01653.How can exclude that error in "grep" command? In following "grep" command I want to exclude "ORA-01653" error grep -i ORA alert.log >>/tmp/ora_errors.txt ... (7 Replies)
Discussion started by: Mansoor8810
7 Replies

7. Shell Programming and Scripting

Copy UNIX File into a DSN with a specific Format

Hi All , I am new to programming and here is what i am trying to achieve , i am taking a list of mounted filesystems (based on the HLQ) , passing it on to a txt file and then copying the file to a DSN .The code i am using : df | grep WAST.*WASCFG.*ZFS | awk '{print $2}' | sort -o log.txt |... (5 Replies)
Discussion started by: AnjanM
5 Replies

8. Shell Programming and Scripting

Tnsnames.ora

Hi, I would like to modify, in script schell, the line right above (DESCRIPTION and check three cases : if line contain ".world" then line=line-".world" concat "," concat line if line dont contain ".world" then line=line concat "," concat line concat".world" else line=line Keep in... (10 Replies)
Discussion started by: elcaro
10 Replies

9. Shell Programming and Scripting

Removing section from tnsnames.ora

Hi, I am trying to write a script or command to remove a section from tnsnames.ora file in the following example I would like to remove tns_alias2 section $ cat tnsnames.ora tns_alias1 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = host1 )(PORT = 1521)) ... (3 Replies)
Discussion started by: ynixon
3 Replies

10. Red Hat

Ora-27603:ora-27626:

Hi, User claim that job is running slow from their end. I DBA found in database the below errors in alert log file. ORA-27603: Cell storage I/O error, I/O failed on disk o/192.168.10.3/RECO_DM01_CD_01_drm01 at offset 13335789568 for data length 1048576 ORA-27626: Exadata error: 2201 (IO... (2 Replies)
Discussion started by: Maddy123
2 Replies
Dancer::Plugin::DBIC(3pm)				User Contributed Perl Documentation				 Dancer::Plugin::DBIC(3pm)

NAME
Dancer::Plugin::DBIC - DBIx::Class interface for Dancer applications VERSION
version 0.1506 SYNOPSIS
use Dancer; use Dancer::Plugin::DBIC 'schema'; get '/users/:id' => sub { my $user = schema->resultset('User')->find(param 'id'); template user_profile => { user => $user }; }; dance; DESCRIPTION
This plugin makes it very easy to create Dancer applications that interface with databases. It automatically exports the keyword "schema" which returns a DBIx::Class::Schema object. You just need to configure your database connection information. For performance, schema objects are cached in memory and are lazy loaded the first time they are accessed. CONFIGURATION
Configuration can be done in your Dancer config file. This is a minimal example. It defines one database named "default": plugins: DBIC: default: dsn: dbi:SQLite:dbname=some.db In this example, there are 2 databases configured named "default" and "foo": plugins: DBIC: default: dsn: dbi:SQLite:dbname=some.db schema_class: My::Schema foo: dsn: dbi:mysql:foo schema_class: Foo::Schema user: bob pass: secret options: RaiseError: 1 PrintError: 1 Each database configured must have a dsn option. The dsn option should be the DBI driver connection string. All other options are optional. If you only have one schema configured, or one of them is named "default", you can call "schema" without an argument to get the only or "default" schema, respectively. If a schema_class option is not provided, then DBIx::Class::Schema::Loader will be used to dynamically load the schema based on the dsn value. This is for convenience only and should not be used in production. See "SCHEMA GENERATION" below for caveats. The schema_class option, should be a proper Perl package name that Dancer::Plugin::DBIC will use as a DBIx::Class::Schema class. Optionally, a database configuation may have user, pass, and options parameters as described in the documentation for "connect()" in DBI. You may also declare your connection information in the following format (which may look more familiar to DBIC users): plugins: DBIC: default: connect_info: - dbi:mysql:foo - bob - secret - RaiseError: 1 PrintError: 1 USAGE
This plugin provides just the keyword "schema" which returns a DBIx::Class::Schema object ready for you to use. If you have configured only one database, then you can call "schema" with no arguments: my $user = schema->resultset('User')->find('bob'); If you have configured multiple databases, you can still call "schema" with no arguments if there is a database named "default" in the configuration. Otherwise, you must provide "schema()" with the name of the database: my $user = schema('foo')->resultset('User')->find('bob'); SCHEMA GENERATION
There are two approaches for generating schema classes. You may generate your own DBIx::Class classes by hand and set the corresponding "schema_class" setting in your configuration as shown above. This is the recommended approach for performance and stability. It is also possible to have schema classes automatically generated via introspection (powered by DBIx::Class::Schema::Loader) if you omit the "schema_class" configuration setting. However, this is highly discouraged for production environments. The "v7" naming scheme will be used for naming the auto generated classes. See "naming" in DBIx::Class::Schema::Loader::Base for more information about naming. For generating your own schema classes, you can use the dbicdump command line tool provided by DBIx::Class::Schema::Loader to help you. For example, if your app were named Foo, then you could run the following from the root of your project directory: dbicdump -o dump_directory=./lib Foo::Schema dbi:SQLite:/path/to/foo.db For that example, your "schema_class" setting would be "Foo::Schema". AUTHORS
o Al Newkirk <awncorp@cpan.org> o Naveed Massjouni <naveedm9@gmail.com> o Alexis Sukrieh <sukria@sukria.net> o Franck Cuny <franck@lumberjaph.net> o David Precious <davidp@preshweb.co.uk> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by awncorp. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-04-13 Dancer::Plugin::DBIC(3pm)
All times are GMT -4. The time now is 08:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy