ORA-28536 & ORA-28508 & global_names

Hi all,
I set global_names to TRUE. I am working on db_link between Oracle and MS sql server.
The init file:
HS_FDS_CONNECT_INFO=MyHost,1433/master
HS_FDS_TRACE_LEVEL=debug
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_DB_DOMAIN=MyDomain
HS_DB_NAME=SQLEXPRESS
alter session set global_names=TRUE;
drop public database link sqlexpress.MyDomain;
CREATE  PUBLIC DATABASE LINK "SQLEXPRESS.MyDomain"   CONNECT TO "SA" IDENTIFIED BY "xxxxxx"     USING 'dg4msql';  
select * from [email protected]; When I try to execute the this query I get the below error
ORA-28536: erreur de traitement des paramètres d'initialisation des services hétérogènes
ORA-28508: valeur SQLEXPRESS non valide pour le paramètre d'init. des services hétérogènes HS_DB_NAME
ORA-02063: précédant 2 lines de SQLEXPRESS.
do you have any idea how can I fix this?
Thanks,

Hi sb92075 ,
     I found the cause of this error HS_DB_NAME should not exceed 8 character.
Your suggestion about Uppercase is true
HS_FDS_CONNECT_INFO=MyHost,1433/master
HS_DB_DOMAIN=MYDOMAIN
HS_DB_NAME=MASTER
HS_FDS_TRACE_LEVEL=debug
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
  alter system set global_names=true;
CREATE   DATABASE LINK "MASTER.MYDOMAIN"
   CONNECT TO "SA" IDENTIFIED BY "xxxxxxx"
     USING 'dg4msql';
     select * from dual@"MASTER.MYDOMAIN";
Thanks for your help

Similar Messages

  • 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

  • Database Link ORA-04054

    Hi
    I try send data from DB1 to DB2 via dblink.
    I created link
    CREATE DATABASE LINK MED
    CONNECT TO user IDENTIFIED BY pass
    USING
    '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.255.134.30)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = med)
    and I can select data from remote table without errors.
    When I try Insert data to remote table (with PLSQL)
    for xx in (select u.*, sm.nr_gm, sm.nazwa nazwa_miejsc from adresy u ,sl_miejscow@med sm where u.miasto=sm.ident and
    not exists
    (select * from PAC@med pk where pk.ident_pac=u.identyfikator and pk.jednoraz='K' )
    and u.data_zap is not null)
    loop
    insert into PAC@MED
    (ident_pac, od_daty, do_daty, adr_ulica, adr_kod, nr_domu, nr_lokalu, telefon, jednoraz,z_kim_mieszka,ident_miejsc,ident_poczty,ident_kraj, adr_gmina, WOJEW_KOD, ADR_MIEJSC)
    values
    ( xx.identyfikator, sysdate, to_date('31/12/2099','dd/mm/yyyy'),xx.ULICA, xx.KOD,xx.DOM,xx.LOKAL,
    xx.TELEFON,'K',82, xx.MIASTO, xx.MIASTO, xx.kraj, xx.nr_gm,99, xx.nazwa_miejsc);
    end loop;
    I have error ORA-04054: database link string does not exist.
    Can you help me ??
    Message was edited by:
    AndyPol

    I found solution.
    Main problem was in GLOBAL_NAMES parameter.
    This description help me:
    Problem Description:
    ====================
    You receive an ORA-02069 error during an insert to a remote database through a
    database link when the insert contained a local sequence.
    ORA-02069: global_names parameter must be set to TRUE for this operation
    Cause: A remote mapping of the statement is required but cannot be
    achieved because global_names should be set to TRUE for it to
    be achieved.
    Action: Issue alter session set global_names = true if possible
    Problem Explanation:
    ====================
    This is expected behaviour.
    The insert statement is transformed so that it can be executed at the remote
    end of the dblink. The reference to the local sequence has to be qualified so
    that the remote end knows to call back to the local instance. The qualification
    is made by appending @local_dbname.domain to the sequence reference if
    global_names=true. When global_names=false, the code cannot make the assumption
    that the qualifier will be valid and reports the error ORA-02069 'global_names
    parameter must be set to TRUE for this operation'.
    Search Words:
    =============
    DBLINK SEQUENCE GLOBAL_NAMES ORA-2069
    Solution Description:
    =====================
    Use the following workaround:
    1. Create a 'temporary' table on the local database for holding the inserts.
    2. Insert the entire row into this table.
    3. Insert the 'temporary' row from the temporary table to the remote table.
    4. Delete the 'temporary' row from the temporary table.
    This is slower but it will get around the problem. It help me
    OR
    Set GLOBAL_NAMES=TRUE in the init<SID>.ora - not work for me
    Solution Explanation:
    =====================
    The first workaround bypasses the remote node having to make a
    call back to the local instance to reference the local sequence.

  • Getting Error ORA-02069

    Getting the below error while inserting the row which is in other DB.
    'ORA-02069: global_names parameter must be set to TRUE for this operation'
    Its asking to set it TRUE. But if it is made as TRUE then the proc is failing. Can you explain and provide a solution.

    Hi,
    So you want to insert rows to the other Oracle DB. GLOBAL_NAMES is a combination of the DB_NAME and the DB_DOMAIN.
    Which can be queried using:
    select name , value from v$parameter where name = 'db_name'; -- For DB_NAME
    select name , value from v$parameter where name = 'db_domain'; --For DB_DOMAIN
    select * from global_name; --For GLOBAL_NAMERun the 3rd query on the target machine, then create a DB link using the ouput of the 3rd query.
    It means if your target machine's GLOBAL_NAME is TEST.ORACLE.COM then name your DB link with TEST.ORACLE.COM.
    Regards.
    PS: You have successfully created the DB link and set the GLOBAL_NAMES=false in your DB. How about the GLOBAL_NAMES in the target machine, is it also set to false?
    Edited by: Spongebob on Apr 27, 2010 3:16 PM

  • Oracle to sqlserver 2000 connection

    Hi
    I recently made a connection from oracle9i (solrais 10) to sql server 2000(V 8.0).
    I'm encountering following issue, if someone could help me that would really great.
    SQL Error: ORA-28536: error in processing Heterogeneous Services initialization parameters
    ORA-28508: invalid value TITANSTAGE for Heterogeneous Services initialization parameter HS_DB_NAME
    ORA-02063: preceding 2 lines from TITANSTAGE
    28536. 00000 - "error in processing Heterogeneous Services initialization parameters"
    *Cause:    An error described by a subsequent error message
    prevented successful processing of Heterogeneous Services
    initialization parameters from the ORACLE server data dictionary.
    *Action:   Check server data dictionary views HS_CLASS_INIT, HS_INST_INIT, and
    HS_ALL_INITS. Look for conditions which could produce
    the error identified in the error message immediately
    following this one.
    Below is the listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = shark)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = shark)(PORT = 1523))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = hsmsql)
    (ORACLE_HOME = /z01/app/oracle/product/9.2.0.7)
    (PROGRAM = hsodbc)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ORACLE_HOME = /z01/app/oracle/product/9.2.0.7)
    (SID_NAME = ititanstage)
    Tnsnames.ora
    hstitanstage=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 135.63.14.54)
    (PORT = 1521)
    (CONNECT_DATA =
    (SID =ititanstage)
    (HS=)
    Value from initititanstage.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = titan
    HS_DB_NAME = TITANSTAGE
    #HS_DB_DOMAIN= 10.32.130.52
    #HS_FDS_TRACE_LEVEL = 4
    HS_FDS_SHAREABLE_NAME=/usr/openlink/lib/libiodbc.so
    HS_FDS_TRACE_FILE_NAME = /tmp/HSODBC/iniths9i.trc
    #HS_OPEN_CURSORS=2
    # ODBC specific environment variables
    set ODBCINSTINI=/usr/openlink/bin/odbcinst.ini
    set ODBCINI=/usr/openlink/bin/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    set OPENLINKINI=/usr/openlink/bin/openlink.ini
    set FREETDSCONF=/usr/openlink/bin/freetds.conf
    set OPL_LICENSE_DIR=/usr/openlink/bin
    set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/openlink/lib
    set PATH=$PATH:/usr/openlink/bin
    odbc.ini
    [titan]
    Driver = /usr/openlink/lib/sql_mt_lt.so
    ServerType = SQLServer 2000
    Username = reader
    Password = reader
    Database = titanstage
    Options = -H 135.63.14.153 -P 1433 -V 8.0
    FetchBufferSize = 99
    ReadOnly = no
    DeferLongFetch = no
    JetFix = no
    Description = Titanstage SQLServer 2000 Lite Connection

    Its good to you,
    I am having a similar problem: I get ORA-28508 from oracle gateway. When I try to connect mssql server from sqlplus.
    Everything goes fine when I connect on port 1433. So I think the root of my problem is that I specify the port number in the wrong way:
    HS_FDS_CONNECT_INFO="address='hostname/instancename' port='1106'"
    If your problem was similar or the same, then you could help me by by posting your solution.
    Cheers,
    Adam Balogh
    DBA

  • MS SQL 2000 to Oracle 9R2

    Hi all!
    I'm try to connect from Oracle to MS SQL 2000 (all in WIN NT4)
    but get
    ORA-28508: invalid value OSTRA-KIEV.OFFICE for Heterogeneous Services initialization parameter HS_DB_DOMAIN
    My config files:
    listener.ora:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Yazenok)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = D:\Oracle)
    (SID_NAME = zmey)
    (SID_DESC =
    (PROGRAM = tg4msql)
    (SID_NAME = tg4msql)
    (ORACLE_HOME = d:\oracle)
    tnsnames.ora:
    ZMEY.OSTRA-KIEV.OFFICE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Yazenok)(PORT = 1521))
    (CONNECT_DATA =
    (SID = zmey)
    (GLOBAL_NAME = ZMEY)
    TG4MSQL.OSTRA-KIEV.OFFICE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Yazenok)(PORT = 1521))
    (CONNECT_DATA =
    (SID = tg4msql)
    (GLOBAL_NAME = tg4msql)
    (HS = OK)
    INSUR.OSTRA-KIEV.OFFICE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = solaris)(PORT = 1521))
    (CONNECT_DATA =
    (SID = INSUR)
    (SERVER = SHARED)
    (GLOBAL_NAME = insur)
    inittg4msql.ora:
    HS_FDS_CONNECT_INFO="SERVER=ZMEY;DATABASE=insurance"
    HS_FDS_TRACE_LEVEL = DEBUG
    HS_FDS_RECOVERY_ACCOUNT=insur
    HS_FDS_RECOVERY_PWD=insur
    HS_DB_NAME=TG4MSQL
    HS_DB_DOMAIN="OSTRA-KIEV.OFFICE"
    Could anybody tell me what I'm doing wrong on this?
    Thanks.

    DTS is also buggy which is why SQL Server 2005 has a complete rewrite of the feature.
    Nevertheless for straight data dumps Jim is correct in that DTS should work.
    For getting the DDL you might consider using Query Analyzer to just dump all the DDL into a file and then using C or a script language to extract and convert the SQL into Oracle DDL. If you are a good script (maybe Perl) coder this would be just as quick as setting up and using the conversion tool.
    Once you have the tables defined to Oracle you can use a little pl/sql to generate the sqlldr control cards to pull in the DTS extracted data.
    Or you can use the ability of SQL Server to access Oracle by define a remote db and insert all the data accross. You will need to install an Oracle client on the SQL Server box to do this.
    You have plently of options. Look them all over and go with the one that best matches your available skill set.
    HTH -- Mark D Powell --

  • Insert using database link

    Now connected to database B :
    INSERT INTO abc_hesids
              (     abc_key,
                   hesid,
                   date_added,
                   date_updated,
                   dob,
                   sex,
                   newnhsno,
                   homeadd,
                   procode3,
                   lopatid
              SELECT     'X',
                        0,
                        sysdate,
                        sysdate,
                        HES_Common.f_string_field('X', 1),
                        HES_Common.f_string_field('X', 2),
                        HES_Common.f_string_field('X', 3),
                        HES_Common.f_string_field('X', 4),
                        HES_Common.f_string_field('X', 5),
                        HES_Common.f_string_field('X', 6)
              FROM dual
    The above INSERT has been reduced down to bare minimum with the following error occurring :
    HES_Common.f_string_field('X', 1),
    ERROR at line 18:
    ORA-02069: global_names parameter must be set to TRUE for this operation
    SQL>
    The abc_hesids table exists in database A and this insert is running in database B. A database link exists such that abc_hesids is a synonym for the table of the same name in database A.
    I want Oracle to insert into the table in database A but use the package HES_Common in database B. I think this is possible but have not done this sort of thing for a while. Note : the package HES_Common exists in both databases A and B
    Any ideas on how to get Oracle to use the local version of the package - do I have to get the DBA to change global_names to TRUE ??

    ORA-02069 global_names parameter must be set to TRUE for this operation
    Cause: A remote mapping of the statement is required but cannot be achieved because GLOBAL_NAMES should be set to TRUE for it to be achieved.
    Action: Issue ALTER SESSION SET GLOBAL_NAMES = TRUE if possible.

  • Problem in Databse Link Creation

    I have created two Databases Named 'DBOLMMS' and 'MMS2' on same Server. There is User 'MMSUSER' in both Database and there two diffrent services for both Databases Named 'DABOLMMS' and 'MMS2' respectively. I wish to share some of the tables in 'MMS2' into 'DABOLMMS'. So I tried to Create Database Link using following command is SQL Plus
    CREATE DATABASE LINK MMS2 CONNECT TO MMSUSER IDENTIFIED BY MMSUSER USING 'DABOLMMS2';
    Link is created without error but when I try to access data using this link as following
    SELECT * FROM TAB@MMS2;
    I get following error
    ERROR at line 1:
    ORA-02085: database link MMS2.US.ORACLE.COM connects to MMS2
    Pl. send solution on [email protected]
    Thanks
    Indraneel
    null

    Please check the following:
    1. Create the DBLink name different than the Database name of the second DB.
    2. in init.ora give global_names=false
    Hope this will solve.

  • Creating DB Link over HS connection

    Hi Marc,
    As promised here is procedure to setup DB link on 8.1.7(to non-Oracle). Maybe I am including some unecessary steps. In this example I will be connecting to sql db named RedRing
    1. From sys run $Oracle_Home/rdbms/admin/caths.sql
    2. edit init.ora & set Global_Names = false
    this will allow you to set db link names to anything you like
    3. Setup your ODBC connections using Microsoft ODBC Administrator (or other)
    4. edit $Oracle_Home/network/ADMIN/sqlnet.ora set NAMES.DEFAULT_DOMAIN = world
    You may skip this step but remove all '.world' from examples below. If you choose this step however you will need to edit $Oracle_Home/network/ADMIN/tnsnames.ora and add '.world' to all your entries.
    5. add entries in $Oracle_Home/network/ADMIN/tnsnames.ora e.g.
    REDRING.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBS-01)(PORT = 1521))
    (CONNECT_DATA =
    (SID = redring)
    (HS = OK)
    6. add entries in $Oracle_Home/network/ADMIN/listener.ora e.g.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = redring)
    (ORACLE_HOME = c:\oracle\ora81)
    (PROGRAM = hsodbc)
    7. create file in $Oracle_Home/hs/ADMIN e.g. initREDRING.ora
    HS_FDS_CONNECT_INFO = redring
    HS_FDS_TRACE_LEVEL = OFF
    set odbcini=C:\WINNT\odbc.ini
    8. Restart Listener (and I like to restart DB as well)
    9. From db user create db link e.g.
    create database link redring.world connect to username identified by password using 'REDRING.WORLD'
    10. to test: select * from [email protected]
    James

    Yeah, had got this problem too.
    This works if Oracle is installed on Win2000, not sure if it will work on others:-
    1. Close any open oracle database connections to your HS sid.
    2. Get a copy of odbccmpt.exe from the SQL server (should be in x:\Program Files\Microsoft SQL Server\80\Tools\Binn\) and place it on your Oracle server.
    3. Run the odbccmpt.exe from the msdos prompt twice as follows:
    odbccmpt hsodbc /T
    odbccmpt hsodbc /v:6
    That's it. Now nchar and nvarchar are converted to char and varchar as far as oracle is concerned.
    James.

  • Oracle 10.2 64bit and gateway 11 and dg4ifmx

    Hi,
    we want to implement a connection to our informix server
    from oracle 10.2 64bit on a SuSE SLES10 64bit machine.
    so i installed the gateway services for oracle 11g
    I also installed the required patch 5965763
    and configured the listener.ora and tnsnames.ora
    and the initdg4ifmx.ora
    So far the configuration seems to be OK.
    unfortunatly the database name ist /opt1/project/ifax/dbs/f0001
    the parameter
    HS_FDS_CONNECT_INFO = <host_name>:<port>/<server_name>/<database_name>
    don`t accept / in the database_name
    i tried to use a separate odbc.ini
    and tried to quote the slash with \ "\/"
    everytime the same error:
    ORA-28510: heterogeneous database link initialization failed
    ORA-28508: Ungltiger Wert tq-ifaxsrv-1:1800/tq_ifax_odbc//opt/projects/ifax/dbs/f0001 fr Heterogeneous Services-Initialisierungsparameter HS_FDS_CONNECT_INFO
    Is there a workaround?
    regards lothar

    i made a link in the home directory from informix to the database.
    now the databasename is f0001 ( testet with a windows maschine)
    but i still get error messages:
    HS_FDS_CONNECT_INFO = "tq-ifaxsrv-1:1800/tq_ifax_odbc/f0001"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/03/05-12:35:26
    dsn:tq-ifaxsrv-1:1800/tq_ifax_odbc/f0001, name:cdix
    optn:
    Entered shgogohn at 2008/03/05-12:35:26
    Exiting shgogohn, rc=28500 at 2008/03/05-12:35:26
    Entered hgocont_OracleCsidToIANA at 2008/03/05-12:35:26
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2008/03/05-12:35:26
    ##>Connect Parameters (len=288)<##
    ## DRIVER=Oracle 11g dg4ifmx;
    ## HostName=tq-ifaxsrv-1;
    ## PortNumber=1800;
    ## ServerName=tq_ifax_odbc;
    ## Database=f0001;
    #! UID=cdix;
    #! PWD=*
    ## ApplicationUsingThreads=1;
    ## CancelDetectInterval=0;
    ## TrimBlankFromIndexName=1;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## UseDelimitedIdentifier=1;
    ## TruncateOversizedColumnValues=0;
    Exiting hgogenconstr, rc=0 at 2008/03/05-12:35:26
    Entered hgopoer at 2008/03/05-12:35:26
    hgopoer, line 159: got native error 0 and sqlstate 7; message follows...
    [Oracle][ODBC 20101 driver]6015[Oracle][ODBC 20101 driver]7503[Oracle][ODBC 20101 driver]1213
    Exiting hgopoer, rc=0 at 2008/03/05-12:35:26
    hgocont, line 1903: calling SqlDriverConnect got sqlstate 7
    Exiting hgocont, rc=28500 at 2008/03/05-12:35:26 with error ptr FILE:hgocont.c LINE:1923 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/03/05-12:35:26 with error ptr FILE:hgolgon.c LINE:612 FUNCTION:hgolgon() ID:Calling hgocont

  • Steps to create database link

    i got these info from my teacher to create database link
    1.     Establish the network connection.
    2.     Shutdown the database. (SQL>shutdown immediate ;)
    3.     Open and modify the pfile and set GLOBAL_NAME = FALSE.
    4.     Create spfile from pfile. (SQL>create spfile from pfile;)
    5.     Startup database. (SQL> startup;)
    6.     Modify tnsnames.ora file, set the destination computer service name and other in formations.
    ASIF.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ONE)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    7.     Crate database link .
    SQL>create public/private database link abc
         Connect to “scott”
         Identified by “tiger”
         Using ‘asif.com’;
    in step 3, which pfile should i modify
    i got a file in F:\oracle\admin\fahmi\pfile named init.ora.31620060327
    but there is no line like GLOBAL_NAME = FALSE
    so watching the sample i add this line in init.ora.31620060327
    global_names = FALSE
    am i right...........??
    can anyone help me...??
    i have some few other questions.....................

    The following is an excerpt from http://www.oracleutilities.com/OSUtil/ping.html
    The tnsping utility is used to determine whether or not an Oracle service can be successfully reached. If a connection can be established from a client to a server (or server to server), tnsping will report the number of milliseconds it took to reach the remote service. If unsuccessful, a network error will be displayed. However, tnsping will only report if the listener process is up and provides no indication of the state of the database.
    $ tnsping <net service name> <count>
    The “net service name” must exist in the tnsnames.ora file. This file is used by clients and database servers to identify server destinations. It stores the service names and database addresses. The “count” parameter is optional and will show the number of times the command should try to connect to the specified service name.
    After this I suggest you to check your $ORACLE_HOME/network/admin/sqlnet.ora.
    Look for what is configure for:
    NAMES.DEFAULT_DOMAIN
    NAME.DEFAULT_ZONE
    This must be compatible to what you are using in your tnsnames.ora.
    By the way, don't forget to check if there is a log file (sqlnet.log) in your $ORACLE_HOME/network/admin directory.
    Regards.
    RK

  • Immediate answer

    SQL> ed
    Wrote file afiedt.buf
    1 INSERT INTO IHS_PT_CASE@link_to_dmsr
    2 SELECT 'IHS_OWNER', SUBSTR(TRIM(ADT_CASE.CASE_ACCOUNT_NO),1,12),
    3 ADT_CASE.CASE_ADMIT_DT, ADT_CASE.CASE_DC_DT, SUBSTR(TRIM(ADT_CASE_LOCATION.LOCN_NSG_STATN_CD),1
    4 SUBSTR(TRIM(ADT_CASE_LOCATION.CLOCN_ROOM_NO),1,4), ADT_CASE.CASE_NO,
    5 SUBSTR(TRIM(ADT_CASE.CASE_PT_CLASS_TYPE_CD),1,1), ADT_PATIENT.PT_BIRTH_DT,
    6 SUBSTR(TRIM(ADT_PATIENT.PT_CITY_NM),1,32), SUBSTR(TRIM(ADT_PATIENT.PT_FIRST_NM),1,20),
    7 SUBSTR(TRIM(ADT_PATIENT.PT_LAST_NM),1,32), SUBSTR(TRIM(ADT_PATIENT.PT_MRN),1,10),
    8 SUBSTR(TRIM(ADT_PATIENT.PT_STATE_CD),1,2), ADT_PATIENT.PT_STREET, ADT_PATIENT.PT_STREET2,
    9 SUBSTR(TRIM(ADT_PATIENT.PT_ZIP),1,5)
    10 FROM ADT_CASE@odsd, ADT_CASE_LOCATION@odsd, ADT_PATIENT@odsd
    11 WHERE ADT_CASE.CASE_ADMIT_DT >= '01-SEP-2005' AND ADT_CASE.CASE_PT_CLASS_TYPE_CD = 'I' AND ADT_
    12 AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID) AND ADT_PATIENT.PT_
    13* AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID)
    SQL> /
    INSERT INTO IHS_PT_CASE@link_to_dmsr
    ERROR at line 1:
    ORA-02085: database link LINK_TO_DMSR.WORLD connects to ODSD.WORLD
    SQL> ed
    Wrote file afiedt.buf
    1 INSERT INTO IHS_PT_CASE@odsd
    2 SELECT 'IHS_OWNER', SUBSTR(TRIM(ADT_CASE.CASE_ACCOUNT_NO),1,12),
    3 ADT_CASE.CASE_ADMIT_DT, ADT_CASE.CASE_DC_DT, SUBSTR(TRIM(ADT_CASE_LOCATION.LOCN_NSG_STATN_CD),1
    4 SUBSTR(TRIM(ADT_CASE_LOCATION.CLOCN_ROOM_NO),1,4), ADT_CASE.CASE_NO,
    5 SUBSTR(TRIM(ADT_CASE.CASE_PT_CLASS_TYPE_CD),1,1), ADT_PATIENT.PT_BIRTH_DT,
    6 SUBSTR(TRIM(ADT_PATIENT.PT_CITY_NM),1,32), SUBSTR(TRIM(ADT_PATIENT.PT_FIRST_NM),1,20),
    7 SUBSTR(TRIM(ADT_PATIENT.PT_LAST_NM),1,32), SUBSTR(TRIM(ADT_PATIENT.PT_MRN),1,10),
    8 SUBSTR(TRIM(ADT_PATIENT.PT_STATE_CD),1,2), ADT_PATIENT.PT_STREET, ADT_PATIENT.PT_STREET2,
    9 SUBSTR(TRIM(ADT_PATIENT.PT_ZIP),1,5)
    10 FROM ADT_CASE@odsd, ADT_CASE_LOCATION@odsd, ADT_PATIENT@odsd
    11 WHERE ADT_CASE.CASE_ADMIT_DT >= '01-SEP-2005' AND ADT_CASE.CASE_PT_CLASS_TYPE_CD = 'I' AND ADT_
    12 AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID) AND ADT_PATIENT.PT_
    13* AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID)
    SQL> /
    INSERT INTO IHS_PT_CASE@odsd
    ERROR at line 1:
    ORA-04054: database link CSLS.WORLD does not exist
    ORA-02063: preceding line from ODSD
    SQL> ed
    Wrote file afiedt.buf
    1 INSERT INTO IHS_PT_CASE@odsd
    2 SELECT 'IHS_OWNER', SUBSTR(TRIM(ADT_CASE.CASE_ACCOUNT_NO),1,12),
    3 ADT_CASE.CASE_ADMIT_DT, ADT_CASE.CASE_DC_DT, SUBSTR(TRIM(ADT_CASE_LOCATION.LOCN_NSG_STATN_CD),1
    4 SUBSTR(TRIM(ADT_CASE_LOCATION.CLOCN_ROOM_NO),1,4), ADT_CASE.CASE_NO,
    5 SUBSTR(TRIM(ADT_CASE.CASE_PT_CLASS_TYPE_CD),1,1), ADT_PATIENT.PT_BIRTH_DT,
    6 SUBSTR(TRIM(ADT_PATIENT.PT_CITY_NM),1,32), SUBSTR(TRIM(ADT_PATIENT.PT_FIRST_NM),1,20),
    7 SUBSTR(TRIM(ADT_PATIENT.PT_LAST_NM),1,32), SUBSTR(TRIM(ADT_PATIENT.PT_MRN),1,10),
    8 SUBSTR(TRIM(ADT_PATIENT.PT_STATE_CD),1,2), ADT_PATIENT.PT_STREET, ADT_PATIENT.PT_STREET2,
    9 SUBSTR(TRIM(ADT_PATIENT.PT_ZIP),1,5)
    10 FROM ADT_CASE@odsd, ADT_CASE_LOCATION@odsd, ADT_PATIENT@odsd
    11 WHERE ADT_CASE.CASE_ADMIT_DT >= '01-SEP-2005' AND ADT_CASE.CASE_PT_CLASS_TYPE_CD = 'I' AND ADT_
    12 AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID) AND ADT_PATIENT.PT_
    13* AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID)
    SQL> /
    AND ADT_CASE.CASE_ID=DMSR_MAX_CASE(ADT_CASE.CASE_ACCOUNT_NO,ADT_CASE.PT_ID) AND ADT_PATIENT.PT_ID=AD
    ERROR at line 12:
    ORA-02069: global_names parameter must be set to TRUE for this operation

    user452038, how to set up and run distributed queries is discussed in the last 5 chapters of the DBA Administration manual for versions 9.2 and 10g. You did not inlcude the Oracle version number and platform.
    The errors messages you listed are pretty clean.
    The database link name by default should match the remote database global name. In order for this to not be true the remote database must have it global_name spfile (or init.ora) parameter set to false, which is not usually the case. Where different domains exists it is generally better to declare the links in the form of remote_dbname.domain as in remote1.world so that the reference reads like @remote1.world.
    HTH -- Mark D Powell --

  • Dblink problem?

    For a Oracle htmldb workspace developer user I defined a database link to a oracle user on another server with oracle version 8.1.7.
    When I try to update a record in a table in that other database I get te following message:
    ORA-20001: Error in DML: p_rowid=1, p_alt_rowid=KANAAL, p_rowid2=, p_alt_rowid2=. ORA-02069: global_names parameter must be set to TRUE for this operation
    The update-form was generated as report-with-form, no changes.
    How to overcome this problem . . anyone to help ???
    Roel

    Yes, Bryan set up a pl/sql anonymous block as a page process. I had:
    DECLARE
    -- the following l_xxx declarations are a bug workaround ref:
    -- Re: Updating tables in external database
    l_work varchar2(100) default substr(:P10_DESC,1,100);
    l_random varchar2(8) default :P10_RANDOM;
    l_name varchar2(33) default :P1_NAME;
    l_dept varchar2(25) default :P1_DEPT;
    l_ext varchar2(22) default :1_EXT;
    l_location varchar2(12) default substr(:P10_BUILDING || '-' || :P10_FLOOR || :P10_ROOM,1,12);
    l_ldkey integer default 10E8*dbms_random.value; --if largest than 10E9, longdesc insert fails
    w_ldkey integer default NULL;
    l_ldtext LONG;
    BEGIN
    INSERT INTO maximo.WORKORDER@maxprd
         description,
    ldkey,
         wo8, -
    xxxxxxxxxxxxxxxx etc etc
    values
    (INSERT INTO maximo.WORKORDER@maxprd
         description,
    ldkey,
         wo8,
    etc etc
    END;
    Hope that helps.
    Cheers
    KIM

  • Error while function calls

    ORA-02069: global_names parameter must be set to TRUE for this operation
    I am getting the following error when I am trying to invoke a user defined function through my sql statement .The function has been declared as DETERMINISTIC .

    The moment i set it to true , i get another error
    .i.e.
    ORA-02085:
    : database link *****PRD connects to ******TEST

  • Oracle stream with rac

    hi ,
    I’m trying to configure oracle stream one direction ( tables level )..
    my source and destination database is 10.2.0.4 and destination in rac (three nodes)
    source database is one node
    please help if there is some configuration required in rac

    Hello
    Please find the Oracle RAC Specific Configuration while implementing Oracle Bidirectional streaming Setup
    #Propagation
    queue_to_queue parameter
    -- Assign Primary / Secondary Instance IDs
    dbms_aqadm.alter_queue_table(queue_table => 'capture_srctab',
    primary_instance => 1,
    secondary_instance => 2);
    dbms_aqadm.alter_queue_table(queue_table => 'apply_srctab',
    primary_instance => 1,
    secondary_instance => 2);
    All Streams processing is done at the owning instance of the queue used by
    the Streams client. To determine the owning instance of each ANYDATA queue
    in a database, run the following query:
    SELECT q.OWNER, q.NAME, t.QUEUE_TABLE, t.OWNER_INSTANCE
    FROM DBA_QUEUES q, DBA_QUEUE_TABLES t
    WHERE t.OBJECT_TYPE = 'SYS.ANYDATA' AND
    q.QUEUE_TABLE = t.QUEUE_TABLE AND
    q.OWNER = t.OWNER;
    #tbsnames.ora
    Service_name=global_name=db_name
    Please find the metalink document
    10gR2 Streams Recommended Configuration [ID 418755.1]
    Regards
    Hitgon

Maybe you are looking for

  • HP Color LaserJet Pro MFP M476

    After spending two days on this, I am convinced there is nowhere that explains how to connect to the Internet.  It says I have to be connected, but not HOW to connect.  I have a hardwired CenturyLink Westell 0415 Router with a remote address of 10.0.

  • Getting an error message when trying to do mov type 521

    Hello All, When we are trying to do Movement type 521 for a material and plant we are getting the error message and not allowing to do the movement. Please help us to solve this issue. Thanks in advance Kalyani

  • What is Considered Best Practice for Error Handling in Components?

    What would be the best approach to handling errors in custom (possibly composite) components? I see three different possibilities: Having the error handling funciton within the component. The problem is that this is not adaptable to the consumers err

  • Replace function in TT7

    Hi, I have a database in TT Release 7.0.3.1.0 and other in Release 11.2.2.4.0. I need use replace sql function over Release 7.0.3.1.0. I know that it not apply in this version but I've tried with ttIsqlCS in node with TT11 through connection in datab

  • Are old messages stored in a table ?

    are the message send to B1iSN stored in a table ? before they are sent , they are in the SEVT table , but after the SEVT rows are deleted . Can i find the old messages in another table ? thanks