Database link with current_user

I'm logged on database EMSDB.D710.DE and created a database link to EMSDB.D999.DE with current_user(...same user, same credentials I'm logged in). When I tried to use that created link I get the errorcode:"ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt". What I don't understand is, why I can connect to EMSDB.D999.DE --- but not access to the same database with a database link???
SELECT     'EMSDB.D999.DE'               REMOTE_DB   --NAME OF DATABASE 
FROM DUAL;
VARIABLE VAR_REMOTE_DB VARCHAR2(15);
BEGIN
    :VAR_REMOTE_DB := '&REMOTE_DB';
END;
SELECT  :VAR_REMOTE_DB                REMOTE_DB    
FROM DUAL;
CREATE DATABASE LINK &REMOTE_DB CONNECT TO CURRENT_USER USING '&REMOTE_DB' ;
SELECT TABLE_NAME FROM ALL_TABLES@&REMOTE_DB;output
SQL> @test
REMOTE_DB
EMSDB.D999.DE
REMOTE_DB
EMSDB.D999.DE
SELECT TABLE_NAME FROM [email protected]
FEHLER in Zeile 1:
ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt
SQL>Edited by: user5116754 on 22.02.2011 04:33

user5116754 wrote:
Thank you, John...but should it be possible for me to create this database link then???
As I said, if you are not a global user according to Oracle, you would need to create a database link supplying the username and password of the user at the remote database that you want to use. Something like:
CREATE DATABASE LINK EMSDB.D999.DE
CONNECT TO username IDENTIFIED BY password
USING 'EMSDB.D999.DE';
How to spy out, what kind of user (GLOBAL...) I am?Log into the local database and do:
SELECT external_name
FROM user_uses;If that return null, then you are not a global user, if it returns a value, you are a global user in that database. Log into the remote database (whatever is identified by emsdb.d999.de) and do the same thing. If the external names on both databases are not null and have the same value, then you are a global user on both databases, and the current_user should work, otherwise you are ethe not a global user on one or both databases, or you are a different global user on the two databases.
John

Similar Messages

  • Using database link  with a dynamic SQL in Forms 5

    I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
    The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
    Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?

    Try to create a local view based ao the remote table and use the view.

  • Database link with the alias and full description in the connect string

    Hi,
    i have created database link with alias in tnsentry and full description
    and suppose i have removed the tnsnames.ora file what will be the impact on the database link that is whether database link will work or not i am sure db link created with alias won't work and how about db link created with full description and which one you prefer
    Thanks

    # Parameter file initora for Database prd
    ### Global database name is db_name.db_domain
    global_names = TRUE
    db_name = prd
    db_domain = world
    # TNSNAMES.ORA for prd ###############################
    prd.world = (DESCRIPTION = (ADDRESS = (COMMUNITY = tcp.world)
    (PROTOCOL = TCP) (Host = 100.10.100.1) (Port = 1521))
    (CONNECT_DATA = (SID = prd) (GLOBAL_NAME = prd.world)
    (SERVER = DEDICATED)))
    Our database link points from the local database test to the remote database prd. Therefore we need the global database name for prd. Ask the remote database administrator for these information or connect to prd and execute the following query on prd:
    SQL> select GLOBAL_NAME from GLOBAL_NAME;
    GLOBAL_NAME
    prd.WORLD
    CREATE DATABASE LINK prd
    CONNECT TO system IDENTIFIED BY system_passwd
    USING 'prd';--- alias
    so the connection description will be ---select ename from [email protected]
    useful link
    http://www.akadia.com/services/ora_dblinks.html

  • Database Link with 11g R2 and Teradata

    Trying to create a database link from Oracle to a Teradata database using Oracle Database Gateway, and I'm receiving ORA-12154: TNS:could not resolve the connect identifier specified...
    I'm pretty new at this and my head is spinning a bit.  After following the gateway configuration instructions it seems there are 3 sets of tnsnames.ora/listener.ora/sqlnet.ora files
    1) on the database server
    2) on my local computer where oracle is installed
    3) on my local computer where the gateway is installed
    Is this how it should be?  Which set should I be working with to resolve this error?  Any other advice for this newbie would be amazing!  Let me know what other information I can share to help describe the issue.  I've tried so many things at this point, I'm not really sure what's relevant and what's not anymore.

    Ok, got it.  I was not in the command prompt as an administrator for my first couple attempts.  Results are below.  I have been replacing host names with italicized descriptions because this is my first time posting on a forum and I'm not sure that my employer would be okay with me posting those specifics.  Let me know if this is hindering the troubleshooting process.
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                18-JUN-2014 10:01:08
    Uptime                    0 days 0 hr. 0 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\product\11.2.0\tg_1\network\admin\listener.ora
    Listener Log File         c:\product\11.2.0\tg_1\log\diag\tnslsnr\COQC2DPRDMGT00
    1\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=local computer where gateway is installed)(P
    ORT=1521)))
    Services Summary...
    Service "dg4tera" has 1 instance(s).
      Instance "dg4tera", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\WINDOWS\system32>
    C:\WINDOWS\system32>tnsping dg4tera
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-JUN-2
    014 10:02:03
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=local computer where gateway is installed) (PORT=1521)) (CONNECT_DATA= (SID=dg4tera)) (HS=OK))
    OK (10 msec)
    C:\WINDOWS\system32>
    C:\WINDOWS\system32>

  • Stored procedure with database link with "from table(...)"

    Hi guys,
    I've been told I can't create views on a database by the design team and so have to use this stored procedure to obtain the values.
    select HAN_ID, HAN_DS, GLOBAL_IN, LOCAL_IN
    from table(cast(ODADMIN.ODP00002_QUERY.Execute001@DBLINK(11312,'EN') as
    ODADMIN.ODP00002_001_Array@DBLINK)) WHERE LOCAL_IN = 'Y';I've been told that it works when you remove the database links (so on the actual database) when you remove the cast part. I've tried it with my link and with/without the cast part but it doesn't work. With the example above I get the error: ORA-00907: missing right parenthesis.
    When I remove the CAST-AS and the additional parenthesis it brings i get the error: ORA-00904: "ODADMIN"."ODP00002_QUERY"."EXECUTE001": invalid identifier
    When I do table( *"* ODADMIN.ODP00002_QUERY.Execute001@MWW_DEV(11312,'EN') *"* )... -- wrapping the call in speech marks I get: ORA-00972: identifier is too long
    Anyone see what's wrong? Thanks for any help.
    Mike

    Hi Ben,
    Asking now. By a view I mean one local to the database; I could create one on APEX but then I use the database link twice instead of just 1.
    His reasoning Ben:
    Firstly, Maintenance. We will have to maintain additional views (at additional code). Secondly, if the view has a JOIN, then you can't update through it (without complexities). If we have to get the View to pass the data to a Procedure (that's a pain). Also, standards..
    All update occur via either a Procedure, or a Base view, across over 1000 tables
    That's the standard, and doing things differently is costly long term
    People will not know how it works, it will have to be explained, maintained..etc.
    If the Application has the Business Rules, then updates via Base Views, that's a more standard way of developing. Also, if you update via this view, you'll update multiple rows in one call, which is in-effficient if only ONE row needs to change. Therefore, single row updates from the Application is more efficient
    The procedure is as follows:
    --SET SERVEROUTPUT ON
    DECLARE
    nPBusLoc       NUMBER(5):=11312;
    sPHanId        VARCHAR2(3):='SB1';
    sPLngId        VARCHAR2(2):='EN';
    sPDesc         VARCHAR2(30);
    sPAllowAlloc   VARCHAR2(1);
    sPShowEnq      VARCHAR2(1);
    sPAllowDel     VARCHAR2(1);
    sPShowScan     VARCHAR2(1);
    sPGlobalLocal  VARCHAR2(1);
    sPReturnCd     VARCHAR2(2);
    sPReturnTx     VARCHAR2(100);                  
    BEGIN
    ODADMIN.ODP00001.getHandlingCodes
                           (nPBusLoc    --  IN   NUMBER
                          ,sPHanId      -- IN   VARCHAR2
                          ,sPLngId      -- IN   VARCHAR2
                          ,sPDesc       -- OUT  VARCHAR2
                          ,sPAllowAlloc -- OUT  VARCHAR2
                          ,sPShowEnq    -- OUT  VARCHAR2
                          ,sPAllowDel   -- OUT  VARCHAR2
                          ,sPShowScan   -- OUT  VARCHAR2
                          ,sPGlobalLocal-- OUT  VARCHAR2
                          ,sPReturnCd   -- OUT  VARCHAR2
                          ,sPReturnTx   -- OUT  VARCHAR2                                    
    DBMS_OUTPUT.PUT_LINE('nPBusLoc                 = '||nPBusLoc              );
    DBMS_OUTPUT.PUT_LINE('sPHanId                  = '||sPHanId               );
    DBMS_OUTPUT.PUT_LINE('sPLngId                  = '||sPLngId               );
    DBMS_OUTPUT.PUT_LINE('sPDesc                   = '||sPDesc                );
    DBMS_OUTPUT.PUT_LINE('sPAllowAlloc             = '||sPAllowAlloc          );
    DBMS_OUTPUT.PUT_LINE('sPShowEnq                = '||sPShowEnq             );
    DBMS_OUTPUT.PUT_LINE('sPAllowDel               = '||sPAllowDel            );
    DBMS_OUTPUT.PUT_LINE('sPShowScan               = '||sPShowScan            );
    DBMS_OUTPUT.PUT_LINE('sPGlobalLocal            = '||sPGlobalLocal         );
    DBMS_OUTPUT.PUT_LINE('sPReturnCd               = '||sPReturnCd            );
    DBMS_OUTPUT.PUT_LINE('sPReturnTx               = '||sPReturnTx            );
    END;
    /Mike
    Edited by: Dird on 27-Aug-2009 01:50

  • Slow Query over Database Link with Bind Variable

    I have a query over a DB link, with all tables on the remote database.
    If I use a bind variable (from Toad), the query takes 4 minutes. If I replace the bind variable with a constant or substitution variable, it takes 1 second.
    The query runs fine when run directly on the remote database using bind variable.
    9.2.0.7

    Look up "Bind variable peeking"
    What's happened is you have an execution plan that differs from the one with the constant. Why? My bet is that Oracle "peeked" at the bind variable to help it decide which execution plan to build. It then cached it. It probably cached an execution with an index when it should be doing a full table scan or a hash join instead of a nested loop. It's hard to say specifically what it is.
    Try this, flush your shared pool and rerun the query with the bind and let us know if it takes 1 second or 4 minutes. If it takes 1 second, then that was probably it.
    Read part 2 of Tom Kyte's blog post on what it is and it's behavior.
    http://tkyte.blogspot.com/2007/09/sqltracetrue-part-two.html

  • DATABASE LINK  with GROUP BY SQL Statemnets

    We have Oracle Database Link linked to MySQL . We want to force executing remote statement that contains group by on the remote MySQL server and let MySQL do the aggregation instead of Oracle.
    We tried also DRIVING_SITE but it doesn't help and the query that was sent to MySQL from Oracle DB Link didn't include GROUP BY and it looks like that the Group by was executed on the local Oracle.
    Is there a way for force executing GROUP BY statements on remote DB instead of the local Oracle DB?

    Try to create a local view based ao the remote table and use the view.

  • Multibyte issue in database link with sql server

    Hi Gurus,
    Greetings!!!
    I need to transfer data from Microsoft SQL Server 2005 to Oracle DAtabase 10g(AL32UTF8 characterset). I achieved it using Heterogeneous Connectivity. I can now issue queries but unfortunately i got an issue in displaying multibyte characters. I thought of using another Tool that can display multibyte data but it did not help. I even tried setting the initialization parameter HS_LANGUAGE to different characterset but still not able to display. Kindly help and advise how to resolve the said issue.
    Many Thanks in Advance,
    Benjie

    What is the exact issue you're talking about?
    Can you explain it or show us a sort of it with a sample output?
    MS SQL Server is not our daily bread so we may not know how it works with Oracle and what problems are there in their interconnectivity, but we may tell you what may be the reason of a behavior that causes the issues for your purpose.
    Bye Alessandro

  • DATABASE_LINK with CURRENT_USER for user identified externally

    Hi,
    My database is in standard edition 10.2.0.5 on windows.
    I have a user OPS$xxx identified externally.
    the connection with this user "sqlplus /@service_name" is ok.
    A database link has been created with these options :
    select * from dba_db_links;
    OWNER DB_LINK USERNAME HOST CREATED
    OPS$xxx TEST_DB CURRENT_USER SERVICE_NAME 19/10/11
    This database link references the same database
    ( it is an external application which has created it).
    if we test with sqlplus, we have :
    sqlplus /@service_nameSQL*Plus: Release 10.2.0.5.0 Production on Fri. Oct. 21 09:58:40 201
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to :
    SQLPLUS> select count(*) from user_tables@TEST_DB;
    ORA-1017: invalid username/password; logon denied
    So is it possible to use this type of database link ? And if it is, how can you do that ?
    Or only "user identified globally " can use database links with current_user...
    Thank you in advance for your help.
    Best regards
    Marie

    A connected user link should work per the reference:
    The ability to use a connected user database link depends on several factors, chief among them whether the
    user is authenticated by the database using a password, or externally authenticated by the operating system or
    a network authentication  service. If the user is externally  authenticated, then the ability to use a connected user link
    also depends on whether the remote database accepts remote authentication of users, which is set by the
    REMOTE_OS_AUTHENT initialization parameter.HTH -- Mark D Powell --
    insert line breaks to try to limit width
    Edited by: Mark D Powell on Oct 21, 2011 9:17 AM
    Edited by: Mark D Powell on Oct 21, 2011 9:18 AM

  • Database link from Oracle to MySQL with the use of unixODBC

    Hi,
    I have 2 servers.
    Server A:
    - CentOS_5.1 x386
    - MySQL 5.1
    - unixODBC
    - mysql-connector-odbc
    Server B:
    - CentOS_5.1 x86_64
    - Oracle 11g
    - unixODBC
    - mysql-connector-odbc
    I've configured ODBC, so I am able to do "isql <DSN> oracle oracle -v" sucessfully with "root" and "oracle" user on Oracle server. I've configured listener.ora and tnsnames.ora
    I added below lines to listener.ora
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=mysqlware)
    (ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/u01/app/oracle/product/11.1.0/db_1/hs/lib:/usr/lib64/:$ORACLE_HOME/lib)
    and lines below to tnsnames.ora
    mysqlware=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=<server's FQDN>)
    (PORT=1521)
    (CONNECT_DATA=
    (SID=mysqlware))
    (HS=OK))
    The content of $ORACLE_HOME/hs/admin/initmysqlware.ora is
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = mysqlware
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc3.so
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    # Environment variables required for the non-Oracle system
    set <envvar>=<value>
    tnsping mysqlware returns.....
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=<server's FQDN>)) (PORT=1521)) (CONNECT_DATA= (SID=mysqlware)) (HS=OK))
    OK (10 msec)
    when I login to oracle and create PUBLIC DATABASE LINK with command....
    create public database link link2mysqlware connect to
    2 "oracle" identified by "oracle" using 'mysqlware';
    Database link created.
    THIS IS WHAT I GET.....
    SQL> select * from "emp"@link2mysqlware;
    select * from "emp"@link2mysqlware
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from LINK2MYSQLWARE
    There is "emp" table in MySQL, from where I can even select with the use of isql command and from this Oracle server.
    I would really appreciate some help here.
    Thanks in advance.
    Tomaz Bracic

    Evening Ed,
    I changed to debug and repeated the select ....... The output below is for one select that I did. (select * from "emp"@link1)
    Oracle Corporation --- WEDNESDAY MAR 19 2008 21:50:51.371
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "mysqlware"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:mysqlware
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2008/03/19-21:50:51
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2082a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a208330
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a208af0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a209d60
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2117d0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a211c70
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a214480
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a215930
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a216130
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a217b50
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a217b70
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a219270
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21c410
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21c7b0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21e250
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21eea0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21f1a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a220fd0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2213a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a222ee0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a222d30
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a227dc0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2295b0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a229be0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22b030
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22b8f0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22d550
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22daa0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22e2f0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a230c30
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a231770
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a232190
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a232c20
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a233110
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a233a10
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a233f20
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2344c0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a234b10
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2350a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a236640
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a236380
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2374e0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2380b0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Exiting hgolofn, rc=0 at 2008/03/19-21:50:51
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/03/19-21:50:51
    Entered hgolgon at 2008/03/19-21:50:51
    reco:0, name:oracle, tflag:0
    Entered hgosuec at 2008/03/19-21:50:51
    Exiting hgosuec, rc=0 at 2008/03/19-21:50:51
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using oracle as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/03/19-21:50:51
    HS_FDS_CONNECT_INFO = "mysqlware"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/03/19-21:50:51
    dsn:mysqlware, name:oracle
    optn:
    ##>Connect Parameters (len=35)<##
    ## DSN=mysqlware;
    #! UID=oracle;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2008/03/19-21:50:51
    Entered hgopoer at 2008/03/19-21:50:51
    hgopoer, line 159: got native error 0 and sqlstate I; message follows...
    Exiting hgopoer, rc=0 at 2008/03/19-21:50:51
    hgocont, line 1903: calling SqlDriverConnect got sqlstate I
    Exiting hgocont, rc=28500 at 2008/03/19-21:50:51 with error ptr FILE:hgocont.c LINE:1923 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/03/19-21:50:51 with error ptr FILE:hgolgon.c LINE:612 FUNCTION:hgolgon() ID:Calling hgocont
    Entered hgoexit at 2008/03/19-21:50:51
    Kind regards,
    Tomaz

  • New database link gets long name with domain name

    When I create a database link with a name "X", oracle renames it to X.regress.rdbms.dev.us.oracle.com
    Why?

    Check this thread:
    REGRESS.RDBMS.DEV.US.ORACLE.COM  concates to every databaselink name.

  • Apex Asset manager/ ID link with database

    Hello,
    I use Asset manager demo and i want to know a the link between ID and database is done with "Automatic processing row (DML).
    I create my own page and trying to insert data in the database but i have error with the primary key.
    ID is a hiden field so no data encoded.

    Gus C wrote:
    Apex 3.2
    We are having problems using database links with lov's
    If I use this code in a report, it works
    select f.id||' - '||f.name display_value
    ,f.id return_value
    from WWV_FLOW_CUSTOM_AUTH_SETUPS@&P215_DATABASE. a
    ,WWV_FLOWS@&P215_DATABASE. f
    where a.name='CUSTOM_LOGIN_SCHEME'
    and A.FLOW_ID = F.ID
    order by 1Where P215_DATABASE is a hidden item on the page containing the db link name.
    If I use the same code in a lov we get error.You get an error in the App Builder because there's no P215_DATABASE value in the builder's session state, so <tt>&P215_DATABASE.</tt> evaluates to NULL, making the query invalid SQL:
    select f.id||' - '||f.name display_value
          ,f.id return_value
      from WWV_FLOW_CUSTOM_AUTH_SETUPS@ a
          ,WWV_FLOWS@ f
    where a.name='CUSTOM_LOGIN_SCHEME'
       and A.FLOW_ID = F.ID
    order by 1Similar thing will happen in the app at runtime if a session state value for P215_DATABASE hasn't been set.
    Change the LOV definition to the Function returning SQL query form, and conditionally include the DB link only if the item has a value:
    return '
    select f.id||'' - ''||f.name display_value
          ,f.id return_value
      from WWV_FLOW_CUSTOM_AUTH_SETUPS' || case when :P215_DATABASE is not null then '@' || :P215_DATABASE else null end || ' a
          ,WWV_FLOWS' || case when :P215_DATABASE is not null then '@' || :P215_DATABASE else null end || ' f
    where a.name=''CUSTOM_LOGIN_SCHEME''
       and A.FLOW_ID = F.ID
    order by 1';

  • Database link creation problem

    localhost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orcl
    remotehost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orac
    These two servers in network and in the same workgroup like peer to peer.There is no concept of domain here.
    Here in this environment i am getting the response from both of the servers at the time of using tnsping.
    C:\>tnsping orac
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:30:54
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=azad)(PORT=1521))
    OK (70 msec)
    C:\>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:31:02
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=pvs)(PORT=1521))
    OK (70 msec)
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using connect_user method:
    SQL> create database link REMOTE_CONNECT connect to current_user using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT;
    select * from emp@REMOTE_CONNECT
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kspgsp2], [64978272], [265], [ent_domain_name], [0],
    [1], [], []
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using identified method:
    SQL> create database link REMOTE_CONNECT2 connect to scott identified by tiger using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT2;
    select * from emp@REMOTE_CONNECT2
    ERROR at line 1:
    ORA-02085: database link REMOTE_CONNECT2 connects to ORACLE
    help me to create the database link in between these two databases..........

    Hi, I have read carefully your letter.
    Firt of all, when you use 'current_user' statement you must guarantee that such users have in both databases.If users exist in both databases and the error will appear again than try create database link with the option 'PUBLIC' as follow:
    CREATE PUBLIC DATABASE LINK REMOTE_CONNECT connect to scott identified by tiger using 'ORAC';
    and check the creation:
    SQL> COL OWNER FORMAT a10
    SQL> COL USERNAME FORMAT A8 HEADING "USER"
    SQL> COL DB_LINK FORMAT A30
    SQL> COL HOST FORMAT A7 HEADING "SERVICE"
    SQL> SELECT * FROM DBA_DB_LINKS;
    OWNER DB_LINK USER SERVICE CREATED
    PUBLIC REMOTE_CONNECT.US.ORACLE.COM SCOTT ORAC 17.04.06
    if the error appear again than checks parameter 'open_links' for your database instance. Default is 4. Increase that number. Good luck.Let me know if something go wrong.

  • ERROR WHILE CREATING A DATABASE LINK USING HETEROGENEOUS SERVICES

    I'm creating a database link with the Oracle Dataware Builder, and i get the following error:
    Probando...
    Fallo.
    SQL Exception
    Error del repositorio: Excepción SQL.
    Nombre de la Clase: CacheMediator.
    Nombre del Método: getDDEntryFromDB.
    Mensaje de Error del Repositorio: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Informix][Informix ODBC Driver][Informix]Incorrect password or user [email protected] is not known on the database server. (SQL State: 28000; SQL Code: -951)
    ORA-02063: preceding 2 lines from PRUEBA_SEH
    As you can see i'm using heterogeneus services to connect to a informix database. ALTIADM is a valid user for that database, i don't send my ip address 192.168.0.62, but the error says "[email protected] is not known in the database server". how can i solve it?????

    Right places to ask this question are
    Heterogeneous Connectivity
    Warehouse Builder

  • ERROR WHILE CREATING A DATABASE LINK TO INFORMIX

    I'm creating a database link with the Oracle Dataware Builder, and i get the following error:
    Probando...
    Fallo.
    SQL Exception
    Error del repositorio: Excepción SQL.
    Nombre de la Clase: CacheMediator.
    Nombre del Método: getDDEntryFromDB.
    Mensaje de Error del Repositorio: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Informix][Informix ODBC Driver][Informix]Incorrect password or user [email protected] is not known on the database server. (SQL State: 28000; SQL Code: -951)
    ORA-02063: preceding 2 lines from PRUEBA_SEH
    As you can see i'm using heterogeneus services to connect to a informix database. ALTIADM is a valid user for that database, i don't send my ip address 192.168.0.62, but the error says "[email protected] is not known in the database server". how can i solve it?????

    Right places to ask this question are
    Heterogeneous Connectivity
    Warehouse Builder

Maybe you are looking for

  • Improve/extend equalizer and add 3D sound. Sound quality really poor.

    I've been using the 2g nano for a while now and i must say the audio quality is really poor if compared with my 3 year old iRiver (which only has 256mb memory). Lots of people keep saying how great the sound quality is but i believe people saysing th

  • Error during presentation services restart

    I get the following error during presentation services restart, Are there any compatibility issues with-in our product ?  Here is our set-up : OBIEE 11.1.1.6.7 Linux 6.3 DB - Oracle 11g R2 sawlog0.log:[2013-08-12T15:27:56.000-06:00] [OBIPS] [ERROR:1]

  • How can i create absolute symbolic links

    The question is simply the Thread Topic, I want to create an Absolute Symlink, I have found some Apple Scripts that i think create relative Symlinks. I am not that familiar with Terminal, so any recomendations to go that route nned to be fully explai

  • Lost DVD Player Application

    Hey, I must have accidently deleted my 'DVD Player' application, I've looked in my 'Applications' folder & done a spotlight search & it doesn't show up, except a folder called 'DVD Player' in the 'Library'. How do i get it back? Plz help! Thanks

  • How to changing host name

    how do i changing host name after install. it never asked me for one and now its stuck on unknown.