Create SQLNET.ora file throug shell script

How to create a file sqlnet.ora through Solaris shell script?

I have a little bit of our 11g databases created by another team without sqlnet.ora files and they are now in production.
I am looking for a simple way to create a file sqlnet.ora via a solaris shell script and send it in the field to be set up by one of our certification authorities.

OR

How to write a simple SQL script to create the sqlnet.ora? Then I can create a shell script to run.

Any ideas will be appreciated?

Published by: Albert Zaza October 7, 2010 14:06

Albert Zaza wrote:

The spec is a little different from what we have vascular. I need to set up some security configuration as well.

What kind of security config? It will vary from one facility to the other?

SQLNET.ora is a very simple text file. I have to agree that you should be able to just build one and then distribute it.

Maybe I didn't explain well enough.

The problem is that the work will be done my Solaris System Admin (SA) who go out once a month. He takes with him are preparing with the difference, including work on Oracle and work when the package is installed, the work of the Oracle will be as well.

So what I want is a syntax used to create the file below and then executed by a shell script when the package is installed by the SA.

#################################################
sqlnet.ora # Network Configuration file: $ORACLE_HOME/network/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
SQLNET. INBOUND_CONNECT_TIMEOUT = 60
SQLNET. EXPIRE_TIME = 300

Ok...

echo "#################################################"  > $ORACLE_HOME/network/admin/sqlnet.ora
echo "# sqlnet.ora Network Configuration File: $ORACLE_HOME/network/sqlnet.ora"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
echo "# Generated by Oracle configuration tools."  >>  $ORACLE_HOME/network/admin/sqlnet.ora
echo ""  >>  $ORACLE_HOME/network/admin/sqlnet.ora
echo "NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
echo "SQLNET.INBOUND_CONNECT_TIMEOUT=60"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
echo "SQLNET.EXPIRE_TIME=300"  >>  $ORACLE_HOME/network/admin/sqlnet.ora

or just to have a copy of the sqlnet.ora and

cp $source_dir/sqlnet.ora $ORACLE_HOME/network/admin/sqlnet.ora

Published by: EdStevens on October 8, 2010 11:33

Tags: Database

Similar Questions

  • SQLNET.ora file missing

    Hi gurus s/n,.

    I installed Oracle 10 g R2 on rhel 5 64-bit operating system. everything works great I'm able to install between client and server. but sqlnet.ora file is not present to set the autihentication operating system. Please tel me Linux should we need to create this file manually or can I get the file with a workaround.



    Thanks in advance...

    Regads

    Delabystephanie

    Delabystephanie wrote:
    Hi gurus s/n,.

    I installed Oracle 10 g R2 on rhel 5 64-bit operating system. everything works great I'm able to install between client and server. but sqlnet.ora file is not present to set the autihentication operating system. Please tel me Linux should we need to create this file manually or can I get the file with a workaround.

    Thanks in advance...

    Regads

    Delabystephanie

    NETCA tool allows to create any network files

  • DBMS_SCHEDULER - trying to create and run a UNIX shell script from Oracle

    How can I run Script Shell Unix from Oracle using DBMS_SCHEDULER?

    After reading many examples online, I finished the 3 steps below.
    Create program, create jobs, run task. On my 3rd stage, I get the following error.
    How can I make sure that the work was created?

    ORA-27475: "APPS. POSPAY_FILE_CHECK_JOB' must be work

    (1) create the program
    BEGIN
      dbms_scheduler.create_program(
         program_name => 'POSPAY_FILE_CHECK_PROG',
         program_type => 'EXECUTABLE',
         program_action => '/home/ldcgroup/ldccbc/POSPAY_USC2_CHECK.sh',
         number_of_arguments => 0,
         enabled => TRUE,
         comments => 'Test Program'
         );
    END;
    (2) create jobs
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
       job_name          =>  'POSPAY_CHECK_FILE_JOB',
       program_name      =>  'POSPAY_CHECK_FILE_PROG',
       enabled           =>   TRUE);
    END;
    /
    (3) the job (not calendar, I'll run this a concurrent request of EBS)
    BEGIN
       DBMS_SCHEDULER.run_job (
         job_name => 'POSPAY_FILE_CHECK_JOB');
    END;
    /

    Of [documentation | http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/scheduse002.htm#i1009668]

    The job is created disabled. You must enable it with DBMS_SCHEDULER.ENABLE before the Scheduler will automatically run it.
    
    Jobs are set to be automatically dropped by default after they complete. Setting the auto_drop attribute to FALSE causes the job to persist.
    
  • Cannot create a database in Oracle 11 g. TNS Protocol card error.  . Missing ORA files.

    I want to start by saying: I went through several forum threads about errors in Protocol TNS, .ora files, installation guides and you name it.  I am new to Oracle 11 g, and I bought the book for a course of database, I don't take in college;  However, I'm not a newbie to technology and I have SQL experience.  My Oracle experience has been a disaster so far, and I am a tester of application by trade! I spent an entire week, just try to get the software installed correctly before finally creating this discussion on your forums.  So I'm sorry to disrupt your forums.  I know that you have 1,000 other subjects with a similar scope, but I have received no help from Oracle and none of the proposed solutions have previously solved my problem.  Let's get to it.

    My system: 6 core AMD, Windows 7 Ultimate SP1, 16 GB RAM, multiple disk drives, if you need anything else to say.

    I am trying to install software: Oracle 11 g SQL Database Standard Edition (it came with my book SQL Oracle 11 g and I need company for the moment)

    Environment: Windows 2008 Server Virtual Datacenter

    Client VM: VMWare

    Problem in short: when I try to install the software and create a database, everything is successful, until the database Configuration Wizard attempts to finalize the process.  All the prereq check Oracle directories are created and etc.  To the database Configuration Wizard, I always get the following error message:

    ORA-12560: TNS:protocol adapter error

    If I try to launch sqlplus and enter my credentials of the default Oracle, I get the same error (I am basically unable to get to the SQL > screen).  I noticed that I only have a sqlnet.ora file in my folder "OraHome_1/NETWORK/ADMIN", and I have not all listeners or tnsnames file in this directory. The sqlnet.ora file reads as follows:

    sqlnet.ora # Network Configuration file: C:\app\Administrator\product\11.1.0\db_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.

    # This file is actually generated by netca. But if customers can opt for
    # install 'Software Only', this file does not exist and without the native
    authentication #, they will not be able to connect to the database on NT.

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    I look at my running services and find that I 3 running Oracle services (at this point, I tried to uninstall/reinstall several times, none seems to be a COMPLETE uninstall, while some of these services were not there before...):

    Oracle ORCL VSS Writer Service (started)

    (Disabled) OracleJobSchedulerORCL # I will revive it with no other success

    OracleOraDb11g_home1TNSListener (on the way)

    I tried to launch another listener using the following cmd command, but I still received the TNS error trying to create a database or connect to sqlplus.

    lsnrctl start LISTENER

    I admit, I am quite sleepy at this point, and I'm not figure this tonight.  I'm not having my hand held through the process, but I could really use some help here.  I understand that my VM disk drive is probably fragmented at this point and I'll probably need to start over from a clean installation of OUR.  I also understand that I keep missing a crucial procedure during initial installation because it is quite obvious that this will not work without the listener or tnsname files.  I tried to interpret the samlples, but an example of the syntax would be really useful.  Also, what users to manually configure these standard files?  It seems that a lot of my trouble could have been avoided if the installation had been easier.  On the contrary, the flame of the fact that I'm more efficient with Microsoft, that the fact that I am new to Oracle.  I could just go to mysql, but I want to give a chance to Oracle.  I just need a nudge in the right direction to get database database server installed.

    I really appreciate any idea that anyone can provide.  I know that you have had other similar subjects historically, but none that I found helped me to this day.  I'm a major network, so I understand that TNS is an Oracle proprietary protocol.  I also understand that the listener is required to actively receive information about this port; I even took down my firewall temporarily to make sure it wasn't a problem.  I even understand that connection strings are needed to associate the database Oracle, Oracle with my Microsoft OS and etc.  What I don't understand, why this was so complicated. Help, please.  I'm just tired of banging my head into the wall on this one.

    Your friend.

    Mills J

    I don't really understand Windows, but I think that you must be connected to the machine as a local administrator and a member of a group ora_dba local, nothing to do with the areas he makes. It is a working example of an account that works:

    c:\users\john >

    c:\users\john>c:\Windows\System32\whoami.exe/User /groupes /fo list

    USER INFORMATION

    ----------------

    Username: jwvaio\john

    SID: S-1-5-21-3147636863-431841176-3387327930-1001

    GROUP INFORMATION

    -----------------

    Name of Group: all

    Type: Notorious group

    SID: S-1-1-0

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_ASMDBA

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1012

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ora_dba

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1014

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_OraDb12c_home1_SYSBACKUP

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1009

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_OraDb12c_home1_SYSDG

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1010

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_OraDb12c_home1_SYSKM

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1011

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_OraDb12c_home2_SYSBACKUP

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1018

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_OraDb12c_home2_SYSDG

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1019

    Attributes: Mandatory, default, active group

    Name of Group: jwvaio\ORA_OraDb12c_home2_SYSKM

    Type: Alias

    SID: S-1-5-21-3147636863-431841176-3387327930-1020

    Attributes: Mandatory, default, active group

    Group name: BUILTIN\Administrators

    Type: Alias

    SID: S-1-5-32-544

    Attributes: Mandatory, by default, the owner of the group, group Enabled

    Group name: BUILTIN\Users

    Type: Alias

    SID: S-1-5-32-545

    Attributes: Mandatory, default, active group

    Group name: NT NT\Interactif

    Type: Notorious group

    SID: S-1-5-4

    Attributes: Mandatory, default, active group

    Group name: logging CONSOLE

    Type: Notorious group

    SID: S-1-2-1

    Attributes: Mandatory, default, active group

    Group name: NT AUTHORITY\Authenticated users

    Type: Notorious group

    SID: S-1-5-11

    Attributes: Mandatory, default, active group

    Group name: NT AUTHORITY\Ce organization

    Type: Notorious group

    SID: S-1-5-15

    Attributes: Mandatory, default, active group

    Group name: LOCAL

    Type: Notorious group

    SID: S-1-2-0

    Attributes: Mandatory, default, active group

    Group name: NT AUTHORITY\NTLM authentication

    Type: Notorious group

    SID: S-1-5-64-10

    Attributes: Mandatory, default, active group

    Group name: Label\High mandatory mandatory level

    Type: Label

    SID: S-1-16-12288

    Attributes: Mandatory, default, active group

    c:\users\john >

    c:\users\john >

  • SQLNET.ora Network Configuration file "missing parameters".

    Hello gurus;

    Earlier I create sqlnet, ora by NETCA
    My SQLNET.ora contains following information only...


    sqlnet.ora # Network Configuration file: /u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES)


    * > > Help > > *.
    why he did not show all parameters? Here is something wrong?
    I need to set SQLNET. AUTHENTICATION_SERVICES = NONE

    952909 wrote:
    Hi EdStevens

    Not able to connect to the database without entering a user name and password.

    Yes, we know. You said, in almost all positions, you did on this subject. We got that. Believe me, we understand that. Can we move on to solve your problem?

    [oracle@localhost ~] $ sqlplus /.

    SQL * more: Release 10.2.0.1.0 - Production on sat 22 dec 19:12:30 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01017: name of user and password invalid. connection refused

    Because everything counts OS logged as that doesn't have an account AUTHENTIFIE of BONES in the database.

    but I can connect like this,

    [oracle@localhost ~] $ sqlplus

    SQL * more: Release 10.2.0.1.0 - Production on sat 22 dec 19:12:17 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Enter the user name: ops Sham $
    Enter the password:
    Connected to:

    Because, despite the "ops$"... ops$ feint isn't an authenticated OS account. This is a database of authenticated account. It's only a database of authenticated account because you gave it a password. From your previous post to Justin:

    -quote from the previous post to start-

    SQL > CREATE USER ops$ sham IDENTIFIED EXTERNALLY.
    Created by the user.
    -suspend - quote

    OK, at this point, you have an authenticated os account "$ops Sham".

    -quote to continue-
    SQL > GRANT CONNECT TO the Sham ops$;
    Grant succeeded.
    -suspend - quote

    Now, the operating system account 'sham' should be able to connect with a simple "sqlplus / '.

    -quote to continue-
    SQL > grant dba to simulacrum of ops$;
    Grant succeeded.
    -suspend - quote

    Now, anyone who uses the operating system account 'sham' can connect without a password and have all the privileges listed in the role of "dba".

    -quote to continue-
    SQL > alter the simulacrum of $ ops user identified by shamos.
    Modified user.
    -end quote-

    But now change you your account "$ops Sham" and gave it a password. OPS$ feint is therefore more than a bone authenticated account. It is now a database authenticate the account, but with a rather misleading name. At this point, if you are trying to connect as "sham of the ops$", you will need to provide a password.

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options

    Note: most web links either saying, we can choose to connect with DB.
    I want to know the difference why this sqlplus command / error display

    Because you're tying to use authentication with an operating system account that is not an operating system os authenticated account in the database. Put "ops$" on the name of the account is NOT what makes an authenticated os account. What makes authenticated os sets the account as "identified on the outside. If you create as 'identified by somepassword', OR if you CHANGE to 'identified by somepassword' then it is NOT authenticated os.

  • file SQLNET.ora trace occurs even after turning off tracing

    Hello

    I recently added the following parameters to the sqlnet.ora file.

    TRACE_LEVEL_SERVER = 16

    TRACE_FILE_SERVER = SERVER

    TRACE_DIRECTORY_SERVER = / ftpland/trace

    TRACE_TIMESTAMP_SERVER = we


    Even after you remove these enteries the sqlnet.ora I can still see the files being generated trave.

    tracing #enable # #.

    #Trace_level_server = 0

    #Trace_filelen_server = 1000

    #Trace_fileno_server = 1

    #Trace_timestamp_server = we

    #Trace_directory_server=/opt/oracle/product/10.2.0/network/trace

    #Diag_adr_enabled = off

    ######################################

    AUTOMATIC_IPC = ON

    TRACE_LEVEL_CLIENT = OFF

    SQLNET. EXPIRE_TIME = 10

    NAMES. Domaine_par_defaut = bsca.eds.com

    NAME. DEFAULT_ZONE = bsca.eds.com

    SQLNET. CRYPTO_SEED = "232166927-1713903352".

    NAMES. DIRECTORY_PATH = (ONAMES, TNSNAMES)

    NAMES. PREFERRED_SERVERS =

    (ADDRESS_LIST =

    (ADDRESS =

    (COMMUNITY = TCP.bsca.eds.com)

    (PROTOCOL = TCP)

    (Host = oraclenames1.bsca.eds.com)

    (Port = 1575)

    )

    (ADDRESS =

    (COMMUNITY = TCP.bsca.eds.com)

    (PROTOCOL = TCP)

    (Host = oraclenames2.bsca.eds.com)

    (Port = 1575)

    )

    )

    NAME. PREFERRED_SERVERS =

    (ADDRESS_LIST =

    (ADDRESS =

    (COMMUNITY = TCP.bsca.eds.com)

    (PROTOCOL = TCP)

    (Host = oraclenames1.bsca.eds.com)

    (Port = 1575)

    )

    (ADDRESS =

    (COMMUNITY = TCP.bsca.eds.com)

    (PROTOCOL = TCP)

    (Host = oraclenames2.bsca.eds.com)

    (Port = 1575)

    )

    )

    BEQUEATH_DETACH = YES

    Kind regards

    VN

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ROSDMP.bsca.eds.com)

    (ORACLE_HOME = opt/oracle/product/10.2.0)

    (SID_NAME = ROSDMP)

    )

    )

    TRACE_LEVEL_LISTENER = 16

    In my opinion, this is the reason, you see the same trace files after the neutralization of him in sqlnet.ora

  • using DBFS file system for request shell scripts

    Guy
    We use DBFS application shell scripts using Korn shell scripts. The default shell for use is/bin/ksh

    Exadata = X 2-2
    version = 11.2.2.2.1 BP4
    Version Oracle = 11.2.0.2

    WARNING: incorrect syntax, perhaps a fake '-'? See /usr/share/doc/procps-3.2.7/FAQ
    -ksh: xxx.ksh: xxx.ksh: cannot run [bad address]

    When you run as

    ksh xxx.ksh it works fine

    Thank you

    MOS 1054431.1 also discusses this:

    "DBFS filesystems can always hold files of shell script or binary file, but if it is mounted with the direct_io option, files on DBFS is not executable. In this case, a second file DBFS system may be used because it can be mounted without the option direct_io to support executable files or scripts. »

  • Setting server or client SQLNET.ora

    Hello

    I do not understand if sqlnet.ora-oracle documentation. I have my perception of this file is only a client-side configuration file.

    MetaLink docID: 151972.1 describe the detection of connection dead DCD, but we're not sure if we set this client-side or server-side?

    Greetings * T

    SQLNET.ora files are optional on the client and the server. However, if you need to configure something that is only done by the sqlnet.ora, you must create the file (if it does not exist).  DCD is a device by which the * server process sends a probe packet (ping) to the customer in order to see if the client is still alive and he answers.  Thus, this configuration is performed on the server.

    (for example, another setting aside server in the sqlnet.ora is 'sqlnet.inbound_connect_timeout')

    Hemant K Collette

  • entries ADRCI SQLNET.ora

    Hi all

    I'm using Oracle 11 g R2. (11.2.0.3)

    My team application ask to add the bottom of the entries in the customer oracle sqlnet.ora file no server:

    DIAG_ADR_ENABLED = FALSE

    DIAG_DDE_ENABLED = FALSE

    DIAG_SIGHANDLER_ENABLED = FALSE

    It affects my database somehow? Disadvantages there?

    Kind regards

    That the definition of these parameters on fake change structure of directories of my trace files?

    No, I don't think that these false setting can change the directory structure, because the automatic diagnostic repository (ADR) is a directory structure that is stored outside the database. Setting these false stops just to create the path and save the files that are needed to send the support of Oracle. When the DIAG_ADR_ENABLED parameter is set to OFF, the tracing of the non - ADR files is used.

    See Structure, content and the location of the automatic diagnostic repository:
    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/diag001.htm#ADMIN11008

    Concerning
    Girish Sharma

  • SQLNET.ora to CCR

    Hello

    My RAC DB is 11 GR 2 on linux redhat.

    I have 2 questions;

    1. I can't find the sqlnet.ora file in any of the nodes, I believe that I can create the files manually on each node, right?

    2 - What is the effect of activation of the password for the sys user authentication; I mean if I manually create the sqlnet.ora file in the various nodes and add the following line to the SQLNET. ORA files; SQLNET. AUTHENTICATION_SERVICES = (NONE)

    If there is a risk in doing that?

    Thank you for your help

    871552 wrote:
    Thank you

    But if I put it as (NONE), I think that the CRS cannot autostart instances, right?

    Yes, right, try it.
    The ohasd will get an ORA-01031: insufficient privileges error trying to autostart of the instance (s).

  • Question reg ldap.ora and sqlnet.ora

    Hello...

    I'm new to dba and I have a few questions about the ldap.ora and sqlnet.ora files... one of my friends wants to connect to a remote database (no port number)... they sent ldap.ora and sqlnet.ora files... they say that these files are to be placed under $ORACLE_HOME/network/admin... i'm a little confused here that this path is available only on the side level db...

    Oracle's NET8 is installed in the system... I do not know where to incorporate the files ldap.ora and sqlnet.ora allowing it to connect to this base... Please guide me on fixing this problem... Thanks in advance...

    Yes,

    You must keep the ldap.ora and sqlnet.ora under ORACLE_HOME/ntwork/admin Local computer for you is maybe praying/NET80/admin.

  • Call the batch file and not the shell script using measures of the event

    Can I use EVENTACTIONS at the door of gold like

    eventactions (SHELL, /path-to-batch-file/test1.bat)

    will this work? I am on a windows machine, so I need to run a batch file and not a shell script

    In GGSCI, you can shell OUT to the BONE and call a command/executable file.

    For example on Windows:

    GGSCI (WIN2003) 2 > shell dir

    Volume in drive C has no label.

    Volume serial number is 8CCC-9E58

    Directory of C:\ggs

    18/08/2012 07:23

    .

    18/08/2012 07:23

    ...

    2010-10-15 06:37 bcpfmt.tpl 426

    2010-10-15 06:37 bcrypt.txt 1 725

    22/04/2011 03:41 2 560 category.dll

    05/11/2011 10:43

    cfg

    2010-10-15 07:15 739 chkpt_ora_create.sql

    ...

    What were the results when you tried this in an EVENTACTIONS clause?

  • How to create the listener.ora file

    Hi all

    My emca start dbconsole... successful because I do not have in network/admin listener.ora. My interlocutor only runs on the default config

    I can't run gui netca bacause I connect only remotely using PuTTY.

    I want to run in silent mode netca to create the listener.ora file... can you give me response.file of the sample for netca?


    Thank you

    Published by: yxes2013 on 3.5.2013 04:14

    I meet emca error before and it is just resolved when I created lisnter.ora, so I want to try it.

    I doubt that listener.ora was the cause.

    Although experience is a better teacher.

    No, trying to find the cause of a problem is a better teacher, just try things at random - it's a good way to teach you things like "emctl start dbconsole does not work without a listener.ora", which is clearly false.

    Once start emca

    The command is not 'emca,' maybe that's your problem.

    We don't know, because you have not copied/pasted something here, including the error message

  • Oracle files for configuration n/w. (sqlnet.ora)

    Hello all;

    I read the oracle documents. That is to say

    In the simplest form, Oracle uses three files for configuration n/w. They are

    Tnsnames.ora, SQLNET.ora, listener.ora

    When you use the remote connection, we use the listener.ora and tnsnmes.ora files.

    It's only for windows?

    SQLnet.ora: What is the purpose of folklore sqlnet.ora. in * NIX flavors?

    Thanks in advance...

    969352 wrote:
    My confusion here only with names and not on connections

    I have mentioned the many documents of the oracle.

    ORGDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = MYSERVER)
    (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.orgdb.com)
    )
    )

    Am I wrong?

    TNS alias is ORGDB
    Service name is: orcl.orgdb.com [must be correspond with global db_name]
    net_service_name = name of the TNS alias [if there is error, please post correct answer]

    Can someone clearly display?

    Please note: my confusions are net_service_name, service_name, domain_name
    Oracle 10 g say differently, 11g saying differently the documents.. I know ...?

    You know, put entire sentences and paragraphs bold loose really resembling scream, many even in capital LETTERS for HELP! (see what I mean?)

    I don't know what are your specific references, when you say that the documents "tell us differently', but I think the best description/definition of"net service name"is located in the Setup Guide glossary. To quote:
    ======================================================================
    NET service name

    A simple name for a service that resolves to a connect descriptor. Users to formulate a connection request from a user name and password with a net service name in a connection string for the service to which they want to connect:

    SQL > CONNECT user_name
    Enter the password: password
    SQL > @net_service_name

    Depending on your needs, the net service names can be stored in a variety of locations, including:

    Tnsnames.ora, on each client, local configuration file

    Directory Server

    Service external naming, such as the Information Service Network (NIS) or cell Directory Service (CDS)
    ======================================================================

    The net service name is in your example of your tnsnames.ora, "ORGDB."
    The name of the service is, of course, "orcl.orgdb.com".
    'Domain name' is a standard networking term.

    You could get more information on these specific questions to [url http://edstevensdba.wordpress.com/2011/07/30/exploring-the-local_listener-parameter/] Explorer-the-local_listener parameter

  • How to write the CLOB parameter to a file or a XML using shell script?

    I run an oracle stored procedure using shell script. How can I get the OUT of the procedure (CLOB) parameter and write it to a file or a XML in UNIX environment using shell script?
    Edit/Delete Message
    SQL> var c clob
    SQL>
    SQL> begin
      2          select
      3                  DBMS_XMLGEN.getXML(
      4                          'select rownum, object_type, object_name from user_objects where rownum <= 5'
      5                  ) into :c
      6          from    dual;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> set long 999999
    SQL> set heading off
    SQL> set pages 0
    SQL> set feedback off
    SQL> set termout off
    SQL> set trimspool on
    // following in the script is not echo'ed to screen
    set echo off
    
    spool /tmp/x.xml
    select :c from dual;
    spool off
    
    SQL>
    SQL> --// file size
    SQL> !ls -l /tmp/x.xml
    -rw-rw-r-- 1 billy billy 583 2011-12-22 13:35 /tmp/x.xml
    
    SQL> --// file content
    SQL> !cat /tmp/x.xml
    
    
     
      1
      TABLE
      BONUS
     
     
      2
      PROCEDURE
      CLOSEREFCURSOR
     
     
      3
      TABLE
      DEPT
     
     
      4
      TABLE
      EMP
     
     
      5
      TABLE
      EMPTAB
     
    
    
    SQL> 
    

Maybe you are looking for

  • Need help reseting and ipad.

    Hello! I bought and used ipad, I did the whole, but I forgot the password, and now it is disable. I tried itune from a computer, but the reset dialog box got out, so o can do icloud because I did all find my device. Now don't know what to do.please h

  • HP Pavilion 17-g053us: g053us hp format for windows 7

    I'm debating buying a HP Pavilion g053us 17 loaded with Windows 10.   However, I do like NOT all spyware/privacy on Windows 10 issues, and until Microsoft fixes them I can stay with my laptop Windows 7 older HP's existing.   Microsoft will give me a

  • Delete all contacts?

    When I created facebook on my phone, in a way all my facebook friends have been added as contacts on my phone. Is there an easy way to delete them all and start over?

  • How to remove "folders" that I placed.

    I have an absolutely horrible time trying to delete one of my "folders".  Nothing I try does not work.  I would appreciate help.  Thank you.

  • Samsung 840 Pro Series 128 GB in Studio 1737?

    Probably a stupid question, but I need to know before making a purchase. The Samsung 840 Pro will work in a Studio 1737? What to look for when buying an SSD to ensure it will work with my computer. Sorry if this is Basic. learning of MI Alex