Oracle sid and database name

Hi guys,.

I'm a bit confused by the name ORACLE_SID and database. I understand that an instance may be attached to a database, and that a database can be attached to multiple instances.

Essentially, when we set the values in our init.ora, we set the values of the instance, or the database, or is it a mixture? that is the instance and the database to which it can connect?

Also, the DB_NAME parameter that specifies what database, the instance can connect to?

And why does it say in the [Oracle documentation | http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/create.htm#1003921] which the DB_NAME initialization parameter value must match the SID setting. I thought that they should not be the same?

Thank you

1. a DATABASE is the physics of files - data files for tablespaces (SYSTEM, UNDO, TEMP, USERDATA, USERINDEXES etc.), controlfile (s), redolog files and possibly the archivedlog files.

2. an INSTANCE is the set of processes that access the database. So, when you start an Instance, you start background processes that allow users to access the files of database.

3. a DATABASE can have multiple INSTANCES in a configuration of OPS/PAP. Thus, each Instance is configured with a different name - the ORACLE_SID maps the processes of the Instance, the Instance name is the name for the process. (1 single database accesses an Instance)

4. a listener allows connections when not coming not from the same ORACLE_HOME. The listener starts for a database Instance (via the inputs the listener.ora) or the database records with the listener running (when PMON updates the default listener or "local_listener").

5. users (ApplicationServers etc.) connect to the INSTANCE, not in the database. Users access the Instance of the SID mapping directly or via a listener. If you have access to via a listener, they specify a SID or a SERVICE_NAME in their connection settings.

I understand that an instance may be attached to a database, and that a database can be attached to multiple instances.

Can access an Instance (I would use 'access' rather than 'attach') 1 single database. However, a database available under multiple instances. (In any case, a database is not attach to an instance - this is the mechanism that opens the database files - access).

When we set the values in our init.ora, we set the values of the instance, or the database, or is it a mixture?

We put them to the Instance. (It's the ControlFile who really knows the database!

what the DB_NAME parameter that specifies what database, the instance can connect to?

If the 'db_name' specified in the init.ora does not match the database name, you get an error and can not access the database.

Why do we say in the Oracle documentation...

It is a recommendation and is not mandatory.

Think about what happens when you CLONE a database. You can CLONE a database to a different instance name, and then change the DB_NAME after a successful RECOVERY and RESETLOGS OPEN (for example that dbca is when it creates a database of preconfigured for you: he one of the clones and then renames the database).
So, I can clone of database 'PROD_A' ("PROD_A' ORACLE_SID) and ORACLE_SID"TEST_A"during the RESTORE process and to RECOVER the DB_NAME to"TEST_A"remains"PROD_A"until I have recreate the ControlFiles and rename the database"TEST_A ".

(And we don't start talking about GLOBAL_NAME and SERVICE names-find you on them to confuse you more!)

Tags: Database

Similar Questions

  • SID and the name of the Service on Weblogic Server

    Dear,
    My question is related to the Data Source, when I create a new source of data weblogic server version 10.3.6.0, I have the name of the database as SID not Service name.
    When I put the name of the database in the SID of the error below will appear:

    Test failed: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    My question is weblogic server version 10.3.6.0 take the name of the database as SID? or there is a way to use the database SID weblogic server version 10.3.6.0 user?

    Now I test the name of database on Jdeveloper Version 11.1.1.4.0 and create the new connection to database as below:
    1 - when I choose the SID, the error above is
    2. when I choose the name of Service everything works correctly.

    Now I need put the user weblogic server version 10.3.6.0 as SID to be pass and continue working on my project.

    Thank you
    $ oerr ora 12505
    12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
    // *Cause:  The listener received a request to establish a connection to a
    // database or other service. The connect descriptor received by the listener
    // specified a SID for an instance (usually a database instance) that either
    // has not yet dynamically registered with the listener or has not been
    // statically configured for the listener. This may be a temporary condition
    // such as after the listener has started, but before the database instance
    // has registered with the listener.
    // *Action:
    //  - Wait a moment and try to connect a second time.
    //  - Check which instances are currently known by the listener by executing:
    //    lsnrctl services 
    //  - Check that the SID parameter in the connect descriptor specifies
    //    an instance known by the listener.
    //  - Check for an event in the listener.log file.
    $
    

    Thank you for posting the connection string you use and, since the database server, the result of "lsnrctl services."

  • Using the column in the Merge of Oracle statement and column name not valid

    Hello

    I have the database table called ecp_blobdata with the following description of the table:
    OBID VARCHAR2(24),
    ZBINDATA LONG,
    ZLEN INTEGER
    I implemented the following statement from Oracle FUSION to refresh this table:
    MERGE INTO ecp_blobdata ecbl
    
          USING rnlht1m4.zbindb@TCPROD bin
          ON (ecbl.obid = bin.obid)
          WHEN MATCHED THEN
               UPDATE SET
                      ecbl.obid = bin.obid,
                      ecbl.zbindata = bin.zbindata,
                      ecbl.zlen = bin.zlen
          WHEN NOT MATCHED THEN
               INSERT VALUES(ecbl.obid, ecbl.zbindata, ecbl.zlen);
               COMMIT;
    However, I get the following error message when I try to compile the package:
    Compilation errors for PACKAGE BODY BHALLAR.DATA_REFRESH
    
    Error: PL/SQL: ORA-38101: Invalid column in the INSERT VALUES Clause: "ECBL"."OBID"
    Line: 13
    Text: MERGE INTO ecp_blobdata ecbl
    
    Error: PL/SQL: SQL Statement ignored
    Line: 13
    Text: MERGE INTO ecp_blobdata ecbl
    The column defintely exists, but I don't know why he keeps complaining with the same error message? It's to do with the help of column which is zbindata or something else that I might not be looking at?

    Thank you.

    G ' Day

    Your syntax is incorrect.

    In the list of VALUES, you should refer to your table in the source columns, alias 'bin '.

    That is to say, precise cause number error message in the documentation:
    Cause: INSERT fact VALUES clause references columns in the destination table

    SW

  • sqlplus / as sysdba not connect after oracle xe name sid and service change

    Hello

    I changed the SID and Service name of Oracle XE "XE" to "CTR".
    After that, I couldn't connect is no longer at the "sqlplus / as sysdba.
    ERROR:
    ORA-12560: TNS:protocol adapter error

    My tnsnames.ora:
    CTR =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ng-w2405ztfio0d)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = CTR)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    My listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CTR)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP) (HOST = ng-w2405ztfio0d)(PORT = 1521))
    )
    )

    DEFAULT_SERVICE_LISTENER = (CTR)

    Help me please
    I thank

    Hello

    Yes, the host is Windows Server 2003.
    I created a new service for the new SID. Followed all the steps to make the change

    How did you create the Oracle database Service? Have you used ORADIM to remove and create the new Instance?

    http://download.Oracle.com/docs/CD/B19306_01/win.102/b14304/create.htm#i1006533

    If you have created the new OracleServicePRTLservice, check who is started correctly.

    Then try a connection as follows from a DOS window:

    set ORACLE_SID=PRTL
    sqlplus / nolog
    connect / as sysdba
    

    Hope this helps.
    Best regards
    Jean Valentine

  • Difference between an Oracle database and Oracle SID

    Hello

    Can someone please differeniate what exactly is the difference between an Oracle SID and a new Oracle database.
    We just need to create another instance of an application (so we need another copy of all tables).

    So either we can:

    1. new database SID created or

    2. new user created in the existing schema or

    3. the new database provided

    What is the best approach?

    Hello

     New database SID created or
    

    Which is the equivalent of creating a new database in your case.

    New user created in existing schema or
    

    You mean new schema (user) created in the existing database. I assumed that this is because you do not want both asks to update the same copy of the table, but copy different.

    3. New database provided
    

    Depends of your you if you want to create a new database or a new scheme to get another copy of the table.

    A few points that I take in mind
    (1) if I have a production database and I need to create a new set of control panels, or any other end, I would create a new database.
    (2) if I have a test database and I need to create a new set of tables of control or any other purpose, if possible I would create a new schema of the existing database.
    (3) if I use less resources(hardware/memory), I would proffer a new schema of the existing database.
    (4) if I'm running not less resources and I want to keep these two entirely different copies, then for security reasons I would create a new database.

    Concerning
    Anurag Tibrewal.

  • How the installation program an Oracle 12 c and database instance without using DBCA, or YES?

    Hello

    I was in charge of the implementation of an Oracle 12 c instance and a database on Redhat 6.4. The caveat is that I can't use the DBCA or YES GUI to do this, I can only use the command line...

    The other issue is there is already the default ORCL instance and the database. So I need to get up a second instance and database, to the sides of it.

    Which is fine, but it is almost impossible to find tutorials on how to do this way.

    So if someone can tell me a good doc on how to do this it would be much appreciated.

    Thank you

    Sam

    It would be at this point that I would like to inform my boss that the way he wants me to approach my work will make me very unproductive. I could no longer made in a short period of time, if I could use the tools Oracle provides for me.

    Maybe I got lucky, but I've never worked for a manager who gave me details like this in the way of my job. Generally said "here's the requirements, now get on with the job." His place for me to decide how to do the task at hand. That being said, I could definitely see a Manager saying something like "we don't have the budget by Exceed for your XWindows environment' (or other 3rd party software X), but that doesn't stop me using X if I could find a way to do it within budget.

    You can certainly install the software silently without X. Google for Oracle Silent Install and you should get a lot of success. You will need to create a response file, and then run the YES program with her. This gives you the software installed with only the command line.

    Regards to the manual creation of the database, you can do it too. Here is a link to the Oracle documentation: http://docs.oracle.com/cd/B28359_01/server.111/b28310/create003.htm#ADMIN11073

    Have fun! It is so much easier with the DBCA Wizard now.

    Finally, if it were me, I would give my post to the company a serious reflection. I prefer to work for a boss who gives me rather than a solely responsible for micro me. I do not say your in a bad position. I don't know all the details. You can be perfectly happy with this work, that would be great! But the comments of the kind that a Manager always give me pause.

    See you soon,.
    Brian

  • the service name and the name of the database are different.

    Hello

    I had created a database with name PROD, latter I renamed DB HAVE according to the request of management.

    But I notice the following things.

    1 OS ORACLE_SID variable level is always PROD. (.bash_profile also I have this entries)
    2. starting at sql prompt DB_NAME is HAVE.
    3 al ' service_name watch listener and instance name is PROD.

    can someone please explain me, why oracle behaves like that.
    Our applications work correctly with any questions so far.


    [oracle@qual ~] $ echo $ORACLE_SID
    PROD
    [oracle@qual ~] $ sqlplus "/ as sysdba".

    SQL * more: Release 10.2.0.1.0 - Production on Tue Mar 5 10:35:01, 2013

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Connect to an instance is idle.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 608174080 bytes
    Bytes of size 1220868 fixed
    209719036 variable size bytes
    394264576 of database buffers bytes
    Redo buffers 2969600 bytes
    Mounted database.
    Open database.
    SQL > select name from v$ database;

    NAME
    ---------
    HAVE

    SQL >! lsnrctl status

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on March 5, 2013 10:38:30

    Copyright (c) 1991, 2005, Oracle. All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=qual.com) (PORT = 1521)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start date March 5, 2013 10:36:54
    Uptime 0 days 0 hours 1 minutes 35 seconds
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u001/app/oracle/product/10.2.0/network/admin/listener.ora file
    The listener log file /U001/app/Oracle/product/10.2.0/network/log/listener.log
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=qual.com) (PORT = 1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC0)))
    Summary of services...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    Service "HAVE" has 1 instance (s).
    Instance of "PROD", State LOAN, has 2 managers of this service...
    Service 'PRODT_XPT' has 1 instance (s).
    Instance of "PROD", State LOAN, has 2 managers of this service...
    The command completed successfully

    SQL > exit
    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options
    [oracle@qual ~] $

    This last I changed the name of DB to HAVE

    Change the DB_NAME is not the ORACLE_SID. You must manually change the ORACLE_SID.

    Stop the database instance.
    Copy $ORACLE_HOME/dbs/initPROD.ora to $ORACLE_HOME/dbs/initPRODT.ora. (I assume that DB_NAME has already been upgraded IN the initPROD.ora)
    Change your ORACLE_SID of PROD WERE and disconnect and connect again.
    Make sure that your ORACLE_SID is now HAVE and that $ORACLE_HOME/dbs/initPRODT.ora
    Now start the database instance

    Hemant K Collette

  • How to get the IP address, Port database don't & Oracle SID details

    Hello
    How to know the IP address, Port database don't & Oracle SID details

    Hello

    The IP address is for not for the database server.

    Port no, may be different.

    check what sid, listening to the port

    lsnrctl > status

    or

    Open the tnsname.ora or listener.ora to find what hostname(ip address), what is the port number and what is the SID that you connect

    Hope that answers your question.

    Kind regards
    Rakesh Jayappa

  • Database objects can be replicated using Oracle Streams and which object cannot be replicated?

    Hi Experts,

    I need clarification on the sub questions,.


    Database objects can be replicated using Oracle Streams and which object cannot be replicated?

    How can we check that what schema and objects are used streams replication and which schema and objects is not used in the replication stream?

    Thanks in advance.

    Select *.
    of dba_streams_unsupported
    where owner | '.' || table_name (...)

    order by 1, 2, 3;

  • Oracle AWR and ADDM report for a multiple instance Oracle database 11 g 2 (RAC)

    Hello

    How to create an Oracle AWR and ADDM report for a multiple instance (RAC) Oracle database 11 g 2?

    Concerning

    Hello

    Oracle DB 11 g 2 AWR Global report before 11 GR 2, the awrrpt.sql generation

    under $ORACLE_HOME/rdbms/admin only generates the report awr for the local instance.

    You will need to collect for each RAC instance awr report.

    11 GR 2, there are two new scripts awrgrpt.sql AND awrgdrpt.sql for CARS

    awrgrpt. SQL - AWR Global report (RAC) (global report)

    awrgdrpt. SQL - overall Diff AWR (RAC) report.

    Some other important scripts under $ORACLE_HOME/rdbms/admin

    spawrrac. SQL - Server Performance RAC report

    awrsqrpt. SQL - statement of the standard ANSI SQL92 report

    awrddrpt. SQL - period diff on the current instance

    awrrpti. SQL - workload repository Instance (RAC) report

    REF link:

    ADDM enhancements in Oracle Database 11 g & mdash; DatabaseJournal.com

  • Oracle 11g and then the database export import in oracle 10g

    Hello! There everyone...

    Please tell me the way to export the data and my data structures i.e. the comprehensive database of Oracle 11 g to the old version (oracle 10g) and how he import it...

    I move the database from one computer to another without lan, preferably via the storage device...

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_overview.htm#CEGFCFFI

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_export.htm#i1009711

  • View the database name and schema page APEX

    Hello

    I have the following problem:
    We have 2 runing of APEX systems, one for testing and one for production.
    When I'm connected, I don't easily see system on which I work.

    So what I want to do is to place a textfield at the bottom of each page of the APEX, which shows the name of the database and schema name, my current APEX application is running on.

    Is this possible? Are there variables that store these values?
    I think there should be some possibiliy to know that my work space is always referencing a db schema.

    Concerning
    Michael

    Michael:

    It should work

    Select Rename global_name;

    CITY

  • Passage of Oracle Dataguard and DNS

    Hi, a few days ago, we planned a passage in a configuration of 10g dataguard (dataguard pasive) between the 2 servers.

    primary: Europe.com APP

    secondary: APP1 in Asia.com

    The two databases was Oracle 10.2.0.3 in Redhat (single instance)

    Everything is going well with databases and the digital switchover but what happened with the web-based applications?

    I have a lot of web PHP applicattion provided with a string of connection with OIC and oracle customer, all have the connection as user/pass@dbname where dbname is defined in the local tnsnames.ora with DNS host names.

    (All have xxx/xxx@APP), and was APP (host:europe.com and SID = APP)

    Europe.com was ip 1.1.1.1

    Asia.com has been ip 2.2.2.2

    My primary instance was APP (name sid) and the standby APP1 (name sid) but what happened when I pass the dataguard?

    Yes, because we have a lot of requests and we don t change the connection string, each of them tries to connect to the new basis of Eve physics APP which is in Europe.com. (and the main news is APP1 in Asia.com)

    Well, first of all, I must change the SID in the database (same as the primary database) waiting for the connection string, for which I have: (thus development are don't want to change the string of connection...)

    (1) immediate stop aid database

    (2) remove the dataguard broker configuration,

    (3) change the instance name in the spfile APP1 to APP.

    (4) change the name of db in the spfile APP1 to APP.

    (5) change the setting fal_client (INSTANCE_NAME = APP1) to (INSTANCE_NAME = APP)

    (6) change the app APP1 orapwd file

    (7) Exchange configuration bash_profile APP and re start the database pending.

    (8) check the listener.ora, so that the new listening service is APP and no APP1

    (8) with respect to the dataguard broker configuration config

    OK, everything works very well and we have the main and the database pending with the same SID.

    But what happened with the dns servers? because the web-based applications will try to connect to APP but APP has been defined as Europe.com and I want to redirect Asia.com as primary database.

    Well, first of all, I changed all my settings and broker dataguard over IP and not dns configuration files, so I made a guide to procedure for the passage to the then when we said that, first we must transition to digital, data bases and then the surface NET must change the DNS for new Europe.com dns point to 2.2.2.2 ip

    After that, everything works great!

    So in conclusion, to forward a permutation with dataguard (which was an excellent feature) check the connection of the chain of applications and take care of them) and if necessary, use the same SID for the two (databases) and emergency

    (In Oracle 12 c, we have a lot of thing to use as a continuation of the app for that)

    Kind regards

    Hernan

    Hi Herman,.

    Maybe I'm mistaken, please correct me if this is the case.

    Assuming you are using oracle customer why not just use the construction in the mechanism for this purpose? DNS has nothing to do with it, but I see people using it yet for this - it is not only suitable for failovers, I do not have my TTL of 60 seconds or less to my recordings of A.

    I had a project for banking HA where after permutation is launched the application (Tomcat) could in a minute to connect automatically to the database of watch on the Internet. First, you must use the database instead of SID service, so you can have the same service on the previous day. What more have a service, you can be sure that it will run the day before until it becomes primary, otherwise you can find yourself in a funny situation. Secondly, why not using built in failover of the connection string parameter, this way you can queue db (s) and in the case where your primary does not that the oracle client will simply try to connect to the waiting (to search for the same service). To ensure that the standby database does not have the service at any time, you can deploy trigger (AFTER startup) to check the role of database, if it is 'primary' it starts just the database service.

    Kind regards

    EVS

  • Can I use special characters in SID and ID of Instance

    Can I use special characters in SID and Id of Instance

    Published by: Moreau Moreau on July 27, 2010 12:25

    Published by: Moreau Moreau on July 27, 2010 12:25

    Mehul Mehta wrote:
    Can I use special characters in SID and Id of Instance

    Published by: Moreau Moreau on July 27, 2010 12:25

    Published by: Moreau Moreau on July 27, 2010 12:25

    No...

    Only alphanumeric characters can be used.

    However for DB_NAME (from Doc Oracle):

    The following characters are valid in a database name: alphanumeric characters, underscores (_), pound (#) and the dollar ($) symbol. No other character is valid. Oracle remove quotation marks before dealing with the name of the database. So you cannot use double quotes to include other characters in the name. The name of the database is case-insensitive.

    Concerning
    Rajesh

  • Subordinating Oracle install not the name of the computer

    I am trying to create a differentiation parent in Hyper-v with pre-installed Oracle installation and configuration of Oracle is time-consuming and often painful. I created a differencing disk and installed 11g inside and tried to make it generic by removing references to the host name where I could find them and replace it with localhost. Under the dbhome directory, there is a < nom_machine > _orcl folder and rename that stopped the OracleDBConsoleorcl service to start. What I do is it possible?

    I ran into similar situations. The problem is that the Installer database Oracle Linux, for example, parses the line punch in/etc/hosts and uses the first entry under the host name. When people change the hostname of the machine, the DBconsole stops working.

    I've seen a lot of posts that suggested to drop and recreate the repository of the console, which is unnecessary and breaks the default console port assignment. It is easy to solve the problem by creating just a couple of symbolic links:

    ln-s localhost_orcl oel.example.com_orcl

    ln-s OC4J_DBConsole_localhost_orcl OC4J_DBConsole_oel.example.com_orcl

    I think that the solution to the problem is to define the variable ORACLE_HOSTNAME, prior to installation.

Maybe you are looking for