GLOBAL_NAME

Hi,
If we set the GLOBAL_NAMES parameter to TRUE, then we have to give the dblinks the same name as the remote database. That is the fact. But a dblink is a connection to only a schema for the remote db. If I have to create multiple dblinks to multiple schemas of the remote db, how to do it?
Thanks,

DBA_1976 wrote:
Hi,
If we set the GLOBAL_NAMES parameter to TRUE, then we have to give the dblinks the same name as the remote database. That is the fact. But a dblink is a connection to only a schema for the remote db. If I have to create multiple dblinks to multiple schemas of the remote db, how to do it?
Thanks,consider actually doing as below
CREATE DATABASE LINK TEST1 CONNECT TO USER1 IDENTIFIED BY PASS1 USING 'LINK1';
CREATE DATABASE LINK TEST2 CONNECT TO USER2 IDENTIFIED BY PASS2 USING 'LINK2';
& reporting the results back her
Handle:     DBA_1976
Status Level:     Newbie (150)
Registered:     Jun 6, 2005
Total Posts:     813
Total Questions:     124 (84 unresolved)
how SAD!

Similar Messages

  • GLOBAL_NAMES setting in 4 nodes RAC

    Hi Experts,
    I have a 4 nodes RAC with 10.2.0.4 database at red hat 5.1
    I find that global_name is nor enforced as
    NAME VALUE
    global_names FALSE
    For stream, I need to change to true.
    I want to know which default value for global_name at RAC.
    If I change to TRUE and enforce global_nmae. does this changes affects RAC system or some RAC function?
    Thanks for help!
    Jim

    Hello Jim,
    Global_Name will not effect anything at the RAC level. This only effects db link name. you have to have use dbname as DB link.
    As per best practices document and other streams documentation .. Global_Name should be true. I have tested this. i have made this parameter false however i have created db link used by streams is same as database name which satisfies mandate requirement for streams. because i had to create one more database link in another schema in same database and this was only option.
    So in a nutshell.. Global_names enforces dblink name same as dbname. you have a workaround.
    Feel free to give it a go.
    Thanks
    Prashant

  • Changing GLOBAL_NAME in 11g RAC

    Hi, All -
    I am running a two node RAC 11g (11.1.0.7) database on RHEL5. I need to change the GLOBAL_NAME.
    SQL> select * from global_name;
    GLOBAL_NAME
    dbname
    SQL> ALTER DATABASE RENAME GLOBAL_NAME TO dbname.companyname.com
    I just want to confirm that I only have to run this on one node and fix the db links.
    Are there any other steps involved since it is a RAC environment?
    Thanks in advance!

    check this
    http://asanga-pradeep.blogspot.com/2010/08/changing-global-name-and-domain-name-in.html
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/best_gen.htm#CHDHCGJJ

  • ORA-02069: global_names parameter must be set to TRUE for this operation

    I have 10g database and a schema 'TMAPP'
    And I have two table in TMAPP as
    create table user_menu_privs
    company_code           varchar2(5),
    bu_code      varchar2(12),
    user_group      varchar2(30),
    user_group_type      varchar2(1),
    menu_option_code number(5),
    enabled varchar2(1),
    query_only varchar2(1),
    default_lang varchar2(3),
    created_by      varchar2(10),
    created_on      date,
    updated_by      varchar2(10),
    updated_on      date,
    constraint pk_user_menu_privs primary key (company_code,bu_code,user_group,user_group_type,menu_option_code),
    constraint fk_user_menu_privs foreign key (company_code,bu_code,user_group,user_group_type)
    references user_group(company_code,bu_code,user_group,user_group_type)
    create table user_dst
    company_code           varchar2(5),
    bu_code      varchar2(12),
    userid varchar2(10),
    user_group      varchar2(30) ,
    user_group_type      varchar2(1) ,
    font_size      number(2) ,
    font_name      varchar2(100) ,
    address_id number(10),
    created_by      varchar2(10),
    created_on      date,
    updated_by      varchar2(10),
    updated_on      date,
    constraint pk_user_dst primary key (company_code,bu_code,userid,user_group,user_group_type),
    constraint fk_user_dst foreign key (company_code,bu_code,user_group,user_group_type)
    references user_group(company_code,bu_code,user_group,user_group_type)
    I have another database 11g with a schema TMAPP.
    Here I have created a database link 'to_dev' is connecting to the 10g db
    using this I can connect and see the data from 10g TMAPP
    I have created two views
    create or replace view user_menu_privs as
    select *
    from user_menu_privs@to_dev
    where user_group in
    (select user_group from user_dst
    where user_group_type='F');
    create or replace view user_dst as
    select * from user_dst@to_dev;
    and I executed
    delete from user_menu_privs
    where menu_option_code=108;
    I am getting the error
    ORA-02069: global_names parameter must be set to TRUE for this operation
    after that I set the global_names in 11g as TRUE
    then I am getting another error as
    ORA-02085: database link TO_DEV connects to DEV.REGRESS.RDBMS.DEV.US.ORACLE.COM -- that means link is not wokring
    Please help
    Dennis
    Edited by: DJ on Mar 13, 2012 5:49 AM
    Edited by: DJ on Mar 13, 2012 5:51 AM
    Edited by: DJ on Mar 13, 2012 5:53 AM
    Edited by: DJ on Mar 13, 2012 5:55 AM
    Edited by: DJ on Mar 13, 2012 5:56 AM

    OP wrote
    >
    But you said
    create a database link in 11g database with 11g database global name and put 11g database global_name=true.
    and put 10g database golba_name=false;
    >
    That isn't what I said at all. Reread my first reply. The first part is a copy of what you had stated.
    >
    ORA-02069: global_names parameter must be set to TRUE for this operation
    after that I set the global_names in 11g as TRUE
    >
    And then I said
    >
    That is because when global_names is TRUE, the database link name MUST be same as the global db name of the database to which the link connects to.
    You need to drop the database link and recreate it using the global name of the database it connects to.
    'link name MUST be same as the global db name of the database to which the link connects to.' - I didn't say 11g.
    And I didn't say 'put 11g database global_name=true' because you had already done that! 'after that I set the global_names in 11g as TRUE.
    1. 11g - global_names MUST be TRUE
    2. 11g - database link name MUST be the same as the global db name of the database to which the link connects to - 10g global db name
    3. 10g - gloibal_names setting is irrelevant

  • LINK to Database with different GLOBAL_NAME

    Could anybody help me? We have two databases with different GLOBAL_NAME parameter. First database has GLOBAL_NAME=true, second - 'false'. I would like to make LINK from first database to second. If I make link name as a simple word ('DBST'- for example), ORACLE adds DOMAIN name and connects with error ORA-02085. Second database doesn't use DOMAIN name.
    Thanks

    This script will export the activeDocument as a jpg and gif
    function exportSFWJpg( doc, saveFile, qty ) {
         var exportOpts = new ExportOptionsSaveForWeb( );
         // see guide for other options
         exportOpts.format = SaveDocumentType.JPEG
         exportOpts.includeProfile = true;//default false
         exportOpts.quality = qty;
         if ( saveFile.exists ) saveFile.remove( );
         doc.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
    function exportSFWGif( doc, saveFile, qty ) {
         var exportOpts = new ExportOptionsSaveForWeb( );// default format is gif
         // see guide for other options
         if ( saveFile.exists ) saveFile.remove( );
         doc.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
    var doc = activeDocument;
    var docPath = decodeURI( doc.path );
    var docName = decodeURI ( doc.name );
    docName = docName.match( /(.*)(\.[^\.]+)/ ) ? docName = docName.match( /(.*)(\.[^\.]+)/ ) : docName = [ docName, docName, undefined ];
    var saveName = docName[ 1 ];
    exportSFWJpg( doc, new File( docPath + '/' + saveName + 'POWERPOINT.jpg' ), 80 );
    exportSFWGif( doc, new File( docPath + '/' + saveName + 'WEB.gif' ) );

  • How to rename global_name to NEW_DBSID after System Copy

    Hello,
    I changed SID D22 to S11 during system copy.The System Copy guide recommends to rename global_name on Oracle.
    I have some questions.
    1) Is the following procedure correct?
         SQL>alter database rename global_name to S11;
    2) If I do not rename global_name, what happens?
    I refer to the guide "Homogeneous and Heterogeneous
    System Copy for SAP Systems Based
    on SAP Web Application Server
    ABAP 6.40 SR1".
    6.2 Performing Follow-On Actions in the
    Target System
    Oracle: If you changed the <DBSID> during the system copy, it is recommended to adapt the global_name parameter with the following SQL command:
    alter database rename global_name to <NEW_DBSID>;
    If the parameter is not existing on your system, ignore this step.
    thanks,
    Keishi

    Hello Keishi,
    just for information.. the official oracle documentation about that topic:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm
    > 1) Is the following procedure correct?
    Here is a test in my MDD test database:
    SQL> SELECT * FROM GLOBAL_NAME;
    GLOBAL_NAME
    MDD.WORLD
    SQL> ALTER DATABASE RENAME GLOBAL_NAME TO MDD2.WORLD;
    Database altered.
    SQL> SELECT * FROM GLOBAL_NAME;
    GLOBAL_NAME
    MDD2.WORLD
    SQL> ALTER DATABASE RENAME GLOBAL_NAME TO MDD.WORLD;
    Database altered.
    SQL> SELECT * FROM GLOBAL_NAME;
    GLOBAL_NAME
    MDD.WORLD
    > 2) If I do not rename global_name, what happens?
    If you use a distributed database system, you need to identify each database by a unique identifier (the global name).
    For more information, take a look at the oracle documentation:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_concepts.htm#i1007500
    Regards
    Stefan

  • Global_names parameter.  True or false?

    Hello,
    One of my projects has a live database and a test database, where both have been set up through the DBCA in exactly the same way. I have set up a remote database link for each one successfully.
    Only question is one of them i have set the global_names parameter to true and it works fine, while the other database the remote database link would only work when the global_names parameter was set to false. This was after i attempted to create the database link with the same name as the target database.
    Can anyone throw any light on why this is the case please?
    Thanks in advance

    GLOBAL_NAMES specifies whether a database link is required to have the same name as the database to which it connects. If the value of GLOBAL_NAMES is FALSE, then no check is performed. Oracle recommends setting this parameter to TRUE to ensure the use of consistent naming conventions for databases and links.

  • Global_name and database link

    I have Windows XP with 10.2.0.1.0
    I have made my database global_name to be junk.points.com.
    And, I create a database link as:
    create database link preview using 'xxxxx';
    the db_link is preview.point.com.
    However, if I use the following command:
    create database link preview.system using 'xxxxx';
    the db_link is preview.system instead of preview.system.points.com.
    I expect the db_link should be preview.system.points.com. Please help.
    Thanks

    Hi,
    Specify the complete or partial name of the database link. If you specify only the database name, then Oracle Database implicitly appends the database domain of the local database.
    If the value of the GLOBAL_NAMES initialization parameter is TRUE, then the database link must have the same name as the database to which it connects. If the value of GLOBAL_NAMES is FALSE, and if you have changed the global name of the database, then you can specify the global name.
    Defining a CURRENT_USER Database Link: Example
    The following statement defines a current-user database link to the remote database, using the entire service name as the link name:
    CREATE DATABASE LINK remote.us.oracle.com
    CONNECT TO CURRENT_USER
    USING 'remote';
    The user who issues this statement must be a global user registered with the LDAP directory service.
    Please view the below document.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/ds_admin002.htm
    And please check the db links you posted one is having __.point.com
    and the other one is having ___.points.com
    Please make sure you are using the GLOBAL_NAMES set true and displaying correct dblink .
    Hope this will be helpful :)
    Thanks,
    Balaji K.

  • Global_name object type

    Hi,
    To know global name of a db we use "SELECT * FROM *global_name*". But what is the type of the object global_name? I could not find anything abt it in dba_objects.
    I am sure its not a parameter since there is a separate parameter global_names, and we are not using sho parameter but select *.
    Please let me know what is this global_name
    Regards,
    Saikat

    I am sure its not a parameter since there is a separate parameter global_names, and we are not using sho parameter but select *.Are you sure? :
    SQL> select table_name from dict where table_name='GLOBAL_NAME';
    TABLE_NAME
    GLOBAL_NAME
    SQL> alter session set global_names=TRUE;
    Sesi¾n modificada.
    For more info, check in parameters documentation:
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams088.htm

  • Global_name changing

    I saw in one document that say global_name=db_name+db_domain.
    My db_name=d
    and db_domain=d.com so global_name=d.d.com
    Ok fine.
    Now I changed my database global_name using
    alter database rename global_name to change;
    now whenever I query,
    select database_name from dual or select * from global_name it shows to me global_name=change;
    But the db_name and db_domain remains same.
    So where went the statement global_name=db_name+db_domain???
    Anyone there clarify me.

    The global database name is the unique name of the database. In a distributed
    database system (a set of databases stored on multiple computers that typically
    appears to applications as a single database) the global database name ensures
    that each database is distinct from all other databases in the system.
    The global database name defaults to DB_NAME.DB_DOMAIN and this value is marked
    at database creation time. If you change the DB_NAME or DB_DOMAIN after the
    database has been created, the value for the global database name (GLOBAL_NAME)
    will not change.
    Also ALTER DATABASE RENAME GLOBAL_NAME will change the global database name, but will not change the value of the DB_NAME or DB_DOMAIN parameters.
    Check this documentation -
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm#sthref4107
    Best regards.

  • Changing global_name

    Oracle 10.2.0.2 Ent edition on AIX 5.3
    My db name is db1 and by mistake i edited global_name to db1.oracle.com as below,
    ALTER DATABASE RENAME GLOBAL_NAME TO db1.oracle.com;
    Actually global_name is db1 itself since db_domain parameter is null.
    SQL> show parameter db_domain;
    NAME TYPE VALUE
    db_domain string
    SQL> show parameter global_name;
    NAME TYPE VALUE
    global_names boolean TRUE
    SQL> select * from global_name;
    GLOBAL_NAME
    DB1.ORACLE.COM
    SQL>
    Now i am not able to revert it back to db1 with the sql: ALTER DATABASE RENAME GLOBAL_NAME TO db1
    Any idea on how to revert the global_name to db1
    ~Thnx

    See MetaLink Note# 382994.1
    If the db_domain was NULL and GLOBAL_NAME was changed to include a domain name, it cannot be changed back again. The only "fix" provided by that note is to update PROPS$.
    Since updateing PROPS$ is not supported, you should log an SR with Oracle Support for confirmation.

  • Significance of Global_names parameter in Oracle CDC and Oracle Streams

    Hi,
    I am trying to implement a sample Oracle CDC example.
    I read in some examples that we need to set a parameter *'global_names= TRUE'*. (which means that all dblink names should be same as their respective database names)
    But my doubt is that what will happen if i use the default value 'FALSE' for this parameter without changing it to 'TRUE'.
    Is it mandatory to make 'global_names= TRUE' ?
    Could anyone please explain this.
    Thanks in Advance
    Regards,
    Gowreesh.

    Hi Sybrand,
    Thanks for the reply.
    Currently there are some dblinks in my database(with dblink names different from the database).
    My concern is,
    If i make global_names=TRUE, then all my earlier dblinks with that database will not work.
    and if I DONOT make global_names= TRUE, then i will not be able to work with Oracle CDC/Streams with the database.
    I am looking to find out any work around to overcome this deadlock type of situation.
    I would be very thankful if you can give some idea to come out of this problem.
    Regards,
    Gowreesh

  • Problems in registering Locations with global_name = true.

    Hello,
    I am facing problems registering locations using ombplus. Here is what I did.
    OMB+> OMBCREATE LOCATION 'TEST_LOCATION' SET PROPERTIES (TYPE, VERSION, DESCRIPTION, BUSINESS_NAME) VALUES ('Oracle Database', \
    '10.2','This is a location', 'TEST_LOCATION' )Location TEST_LOCATION created.
    OMB+> OMBCOMMIT
    Commit complete.
    OMB+> source c:/code/ombscripts/qa-bofarac/allinit.tcl
    C:/Code/OMBScripts/QA-BOFARAC/ImportParam.txt
    OMB+> OMBALTER LOCATION 'TEST_LOCATION' SET PROPERTIES ( HOST, PORT, SERVICE_NAME , SCHEMA, CONNECT_AS_USER,PASSWORD, VERSION, UOID,DATABASE_NAME) \
    VALUES ( '$HOST', $PORT,'$SERVICE', '$TgtDBUser', '$TgtDBUser', 'TgtDBPWD','$
    dbversion','true','$SERVICE');
    Location TEST_LOCATION altered.
    OMB+> OMBCOMMIT
    Commit complete.
    OMB+> OMBREGISTER LOCATION 'TEST_LOCATION' REUSE
    Location TEST_LOCATION is invalid and could not be deployed.
    OMB+> OMBALTER LOCATION 'TEST_LOCATION' SET PROPERTIES ( PASSWORD ) VALUES ('ENT_STAR')
    Location TEST_LOCATION altered.
    OMB+> OMBCOMMIT
    Commit complete.
    OMB+> OMBREGISTER LOCATION 'TEST_LOCATION' REUSE
    Location TEST_LOCATION registered.
    OMB+>
    Please note that I am setting global_names option in LOCATION objec by setting UOID
    = 'true' . Is this correct ? I am using OWB 10.2.0.8
    Am I missing any step before registering location ?
    Please let me know. Any help is appreciated.
    Thanks
    Madhavi

    Hi Madhavi,
    You said:
    OMB+> OMBALTER LOCATION 'TEST_LOCATION' SET PROPERTIES ( HOST, PORT, SERVICE_NAME , SCHEMA, CONNECT_AS_USER,PASSWORD, VERSION, UOID,DATABASE_NAME) \
    VALUES ( '$HOST', $PORT,'$SERVICE', '$TgtDBUser', '$TgtDBUser', 'TgtDBPWD','$
    dbversion','true','$SERVICE');
    Did you leave out the "$"-character for the TgtDBPWD variable in purpose? Could this be the source of your problem?
    Regards,
    Ed

  • Change global_name risk

    what do you think the risk, after you change the global_name of the database. (using alter database rename global_name to aaa.bbb command)
    In my system, previous database link is not work, I think this is only a little thing that I can handle, just only rebuild a new database link.
    But the problem is if you changed your database global_name, you would hardly to change back to original name while database running, and if you don't delete the database link which is unvailable, maybe unsee error will be occured, In my case, if you access the bad database link, sometime will cause database memory corrupt. I don't know if there is any relation. could you solve my confusing?

    Check my posts in this thread
    urgently! remove oracle database domain name
    There's no risk to change global_name if you follow Oracle document.
    I think your problem only happen after you update a data dictionary table directly.

  • Databases link name required without  global_name

    Hi,
    My global_name is "ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM" when i create any database link the name create like "U_NET_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    How i eliminate global_name without edit my initora file using SQL .
    Regards
    Faheem

    You need to check parameter global_names
    alter system set global_names=true scope=both;
    System altered.http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams077.htm#CHDGEHBB
    Also what's your DB_NAME and DB_DOMAIN set at?
    Your global name looks rather erratic.

Maybe you are looking for