Hi,
thanks for the awk --- I do not understand how it should work and I get an error I can not correct:
And I'd like to search for a service name that contains 'pri'. Can you please explain?
I played around with sed:
returns all lefthand sides of the tnsnames.ora....if only I could add something to match the DESCRIPTION with a service name matching 'pri'
Hi everyone,
when i run ;
sqlplus -s username/password@TTTEST @umt.sql
i take "ORA-12154: TNS:could not resolve service name"
i want to run "umt.sql" query and also see result.
thanx for your helping. (6 Replies)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
sge_hostnameutils
HOSTNAMEUTILS(1) Sun Grid Engine User Commands HOSTNAMEUTILS(1)NAME
sge_hostnameutils.1 - SGE Host name utilities
gethostname -
get local hostname.
gethostbyname -
get local host information for specified hostname.
gethostbyaddr -
get hostname via IP address.
getservbyname -
get configured port number of service
SYNTAX
gethostname [-help|-name|-aname|-all]
gethostbyname [-help|-name|-aname|-all] <name>
gethostbyaddr [-help|-name|-aname|-all] <ip>
getservbyname [-help|-number] <service>
DESCRIPTION
gethostname and gethostbyname are used to get the local resolved host name. gethostbyaddr is used to get the hostname of a specified IP
address (dotted decimal notation). getservbyname can be used to get the configured port number of a service (e.g. from /etc/services).
The hostname utils are primarily used by the Sun Grid Engine installation scripts. gethostname , gethostbyname and gethostbyaddr called
without any option will print out the hostname, all specified aliases, and the IP address of the locally resolved hostname. Calling get-
servbyname without any option will print out the full service entry.
OPTIONS -help
Prints a list of all options.
-name
This option only reports the primary name of the host.
-aname
If this option is set, the Sun Grid Engine host alias file is used for host name resolving. It is necessary to set the environment variable
SGE_ROOT and, if more than one cell is defined, also SGE_CELL.
This option will print out the Sun Grid Engine host name.
-all
By using the -all option all available host information will be printed. This information includes the host name, the Sun Grid Engine host
name, all host aliases, and the IP address of the host.
-number
This option will print out the port number of the specified service name.
<name>
The host name for which the information is requested.
<ip>
The IP address (dotted decimal notation) for which the information is requested.
<service>
The service name for which the information is requested (e.g. ftp, sge_qmaster or sge_execd).
EXAMPLES
The following example shows how to get the port number of the FTP service:
>getservbyname -number ftp
21
The next example shows the output of gethostname -all when the host alias file contains this line:
gridmaster extern_name extern_name.mydomain
The local host resolving must also provide the alias name "gridmaster". Each Sun Grid Engine host that wants to use the cluster must be
able to resolve the host name "gridmaster".
To setup an alias name, edit your /etc/hosts file or modify your NIS setup to provide the alias for the NIS clients.
The host alias file must be readable from each host (use e.g. NFS shared file location).
>gethostname -all
Hostname: extern_name.mydomain
SGE name: gridmaster
Aliases: loghost gridmaster
Host Address(es): 192.168.143.99
ENVIRONMENTAL VARIABLES
SGE_ROOT Specifies the location of the Sun Grid Engine standard configuration files.
SGE_CELL If set, specifies the default Sun Grid Engine cell.
SEE ALSO sge_intro(1), host_aliases(5),
COPYRIGHT
See sge_intro(1) for a full statement of rights and permissions.
SGE 6.2u5 $Date$ HOSTNAMEUTILS(1)