Database link failure.

Using the grouper account, I have a database link defined as follows:
CREATE PUBLIC DATABASE LINK parent_link
CONNECT TO parent IDENTIFIED BY "password"
USING 'rem1';
... and several synonyms, one of which is defined as follows:
CREATE PUBLIC SYNONYM valid_fishery FOR parent.valid_fishery@parent_link;
I am able to log in as parent in SQL Plus and Select from valid_fishery.
But when logged in as grouper, I could not Select from valid_fishery, using either method of access:
Referenceing the table name: Select * from parent.valid_fishery@parent_link;
Referenceing the synonym: Select * from valid_fishery;
I get the message:
ORA-01017: invalid username/password; logon denied.
ORA-02063: preceding line from PARENT_LINK
This message is obviously wrong because I logged in through SQL Plus with the exact same username/password.
Clearly, something is wrong with the link, but what could it be?
Edited by: Prohan on Sep 23, 2009 9:33 AM

Proham,
I have seen various issues when going downward across database links (from a higher version of database, to a lower version of database). This has been probablematic over the years in various versions and with different commands that are typically fixed.
Sometimes, in the past, I have seen incorrect errors raised over db_link issues. I believe I even recall selecting from 'dual' returned an error, or when running certain commands using a procedure or package on the remote database.
First thing I'd ask to check (even though it does not seem related), is to ensure either grouper, (or public) have select access to 'parent's' tables.
Does grouper have an account in the remote database? This shouldn't matter actually since you created the link to connect to through parent.

Similar Messages

  • MySQL database connection: Communications link failure Last packet sent to the server was 0 ms ago.

    Hello,
    I am trying to connect to an external MySQL database from within a bundle.
    But I keep getting this error:
    Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure Last packet sent to the server was 0 ms ago.)
    These are the details of my bundle:
    1)          Spring bundle(using Spring DM)
    2)          MySQL database is at port 7046 so my bean is as below:
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
                        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
                        <property name="url"  value="jdbc:mysql://instance13550.db.xeround.com:7046/jas" />
                        <property name="username" value="mysql" />
                        <property name="password" value="mysql" />
    </bean>
    My bundle connects to the mysql database from withina  local  felix installation. But when I put the same bundle within CQ I get the error.
    Please help.
    Karan

    I dont know the answer, but if you google for this, some articles listed might help:
    re: "Communications link failure Last packet sent to the server was"
    Note: I use 're:' which is short for 'reply',
    I think you will also be better off using preparedStatements. Dont forget to use preparedStatement.clearParameters() just before preparedStatements.setString() items in the loop
    Also, I question why you need to test having 1000 test users all banging away at your application at once. Chances are, most will be staring at your web page and only a few will ever hit the update/insert button
    within the same 100 milliseconds or so that your process takes to update.

  • ColdFusion 10 - MySQL Communications link failure

    We are migrating some websites onto a cloud infrastructure running Windows 2008 virtual machines.  These websites all run on ColdFusion with MySQL databases.  They currently are running in our CoLo with no problems.  Additionally, they are running on our development network in our offices with no problems.
    We are setting up our cloud to match as closely as possible the configuration we currently use which is, essentially, CF10 + IIS on one server and MySQL on a separate machine.  We are 99% finished and most things are running great.  However....
    We have run into a couple, as in 2, places where we click a link/button and are greeted with:
    Error Executing Database Query.
    Communications link failure The last packet successfully received from the server was 0 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Scanning the stack-trace I also find:
    `Caused by: java.net.SocketException: Connection reset`
    The communications link error is ALWAYS: 0ms.
    What's most puzzling is the Queries that seem to be causing this are *simple* queries that are used ALL OVER the sites with no problems.  Why they are failing at hese 2 particular places has us at wits end.
    Our only clue is, looking at the CF Error description of what scripts are called, we can see the script where the query is failing is getting called twice?  For example, one of the occurences is in our Application file:
        >The error occurred in D:/Our_Web_Sites/oursite/Application.cfm: line 73
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 73
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
    We can find nothing in our CF code that would be causing the script to be called twice so our guess is the first call is failing on the Query so CF tries again...only to fail and error.
    Googling this issue I've found lots of posts about changing the MySQL timeouts.  None of those worked and I didn't expect them to since what we're dealing with doesn't appear to be a timeout issue.  These pages fail each and every time.
    The closest we've come to a solution came from this blog posting:
    http://www.talkingtree.com/blog/index.cfm/2011/1/12/Validation-Query-for-MySQL-communicati ons-link-failure
    If we UNCHECK the "Maintain connections across client requests. " setting in CFAdmin then the error goes away.  The blog suggests leaving that checked, which is our preference, and using Connection Validation of "SELECT 1;".  Try that...same error.
    We've also tried the JDBC AutoConnect=true option.  No effect.
    Downloaded latest JDBC Connector and used it instead of standard CF10-MySQL connector.  No effect.
    Again, 99% of the site works with the exception of these two links, both of which work just fine in all our other environments.  Any other ideas?

    I have some questions.
    1) You talk of 2 calls. However, you show us 5 calls from Application.cfm. What do those line numbers tell us?
    2) Shouldn't that be AutoReconnect=true rather than AutoConnect=true? In any case, it seems that the problem here is that ColdFusion attempts to use a stale connection to the database. It is then usually preferable to change wait_timeout instead. The MySQL documentation says, 'Alternatively[to AutoReconnect=true], as a last option, investigate setting the MySQL server variable "wait_timeout" to a high value, rather than the default of 8 hours.'.
    3) Shouldn't you already convert to Application.cfc?

  • Communcation link failure with HS ODBC to AS/400  (v4r3)

    HI all,
    i have problem when using Heterogeneous Service to connect Oralce to DB2/400 in AS/400 (v4r3).
    I am using HS's ODBC to connect to DB2/400 in AS/400.
    1) first I created a DSN with name AS400 and driver "Client Access ODBC Driver (32-bit)"
    2) then configured HS in %ORACLE_HOME%/hs/admin/initodbc.ora
    3) modified listener.ora as well as tnsnames.ora
    4) restarted the listener and Oracle.
    5) then I created the database link for this service.
    create database link as400
    connect to "USER" identified by "PASSWRD"
    using 'as400';but when I tried to select something from DB2/400. i encountered the following error
    select count(*) from grw99.sitsupp@as400ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][IBM][Client Access ODBC Driver (32-bit)]
    [DB2/400 SQL]Communication link failure. COMM RC=0x5 (SQL State: 08S01; SQL Code: -5)
    ORA-02063: preceding 2 lines from HSODBC
    can anyone tell me why?!!
    pls help me!
    Marco

    Sounds like the IBM SQLExtendedFetch bug within the IBM ODBC driver.
    Please add these parameters to your DG4ODBC configuration file initDB2_SID.ora:
    HS_FDS_FETCH_ROWS=1
    HS_RPC_FETCH_REBLOCKING=off
    Then open a new SQL*Plus session and retry the select.

  • Database Link, nice but drops

    I have a database link to a remote site (staging server to live server).
    All is well until I throw quite a lot of data (some data from a table full of BLOBs), at which point I get, for example...
    SQL> insert into MyTable@Myremote select * from MyTable where ROWNUM < 100;
    insert into MyTable@Myremote select * from Table where ROWNUM < 100
    ERROR at line 1:
    ORA-12571: TNS:packet writer failure
    ORA-12571: TNS:packet writer failure
    Does this indicate a problem with our network in someway (it is happy with transfering small tables of rows etc)? Is there any way I can cause it to 'resume' as FTP would on a transfer, or is there a timeout property I need to set somewhere or something?
    Staging server (data being transfered FROM) is 8.1.7 on Win2K (to patch level 8.1.7.0.2), Live server (data being transfered TO) is 8.1.6 on Win2K (to patch level 8.1.6.1.2)
    Any help appreciated,
    Thanks,
    Jason.

    Well I would start by checking the O/S event logs to see if it tells you if there is anything up with your protocol, hw, etc ?
    I would also turn on the Oracle trace to see what it says ?
    You cannot resume your operation in fact Oracle will rollback your insert as soon as it detects an abnormal end to the SQL exec thread which will occur when you lose the TNS connect.
    Gut reaction sounds like you are timing out on the network. Just a guess. Have you tried upping the SDU and TDU values in your connect string ?
    Have a nice day.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jason Kane ([email protected]):
    I have a database link to a remote site (staging server to live server).
    All is well until I throw quite a lot of data (some data from a table full of BLOBs), at which point I get, for example...
    SQL> insert into MyTable@Myremote select * from MyTable where ROWNUM < 100;
    insert into MyTable@Myremote select * from Table where ROWNUM < 100
    ERROR at line 1:
    ORA-12571: TNS:packet writer failure
    ORA-12571: TNS:packet writer failure
    Does this indicate a problem with our network in someway (it is happy with transfering small tables of rows etc)? Is there any way I can cause it to 'resume' as FTP would on a transfer, or is there a timeout property I need to set somewhere or something?
    Staging server (data being transfered FROM) is 8.1.7 on Win2K (to patch level 8.1.7.0.2), Live server (data being transfered TO) is 8.1.6 on Win2K (to patch level 8.1.6.1.2)
    Any help appreciated,
    Thanks,
    Jason.<HR></BLOCKQUOTE>
    null

  • Cann't Drop public database link

    I am not able to drop public database link .
    Oracle Version - 11.2.0.1.0 - 64bit Production
    Os Version - Sun Solaris .
    When I am going to drop a public database link it's give a error :
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-20000: Can not drop Object
    ORA-06512: at line 2
    00604. 00000 - "error occurred at recursive SQL level %s"
    Can anyone help to resolve this problem? It is a Production Database and it's a Urgent .
    Thanks,
    Dip Sankar Rana

    You say:
    I already given syntax of creating Public database link.
    But you should give real details (exact statements and exact results) to make it clear what you are attempting and what your problem is.
    Please show:
    - The CREATE PUBLIC DATABASE LINK statement (obscuring the password, of course) and its result (i.e. success or failure message)
    - From each of schema1 (working) and schema2 (not working):
    - - The result of SELECT USER FROM DUAL;
    - - The result of SELECT USER FROM DUAL@DB_TST;
    - - The result of SELECT COUNT(*) FROM ALL_OBJECTS@DB_TST WHERE OWNER = 'B1';
    In the meantime, an observation.
    You said:
    I create a public db link from schema1 to other database using below command --
    CREATE PUBLIC DATABASE LINK DB_TST
    CONNECT TO B1 IDENTIFIED BY password
    USING 'SPPROD'Note that any user (in caps: ANY USER) on this database can use this link to connect to database SPPROD as B1 without knowing the password - because you put the credentials in the link.
    If you have a PUBLIC database link with credentials, like you do here, you have a serious, glaring security exposure. You really, REALLY should not do this. Use a private database link (available only to the user that created it) or do not put credentials on the link (so that any user using that link is using his own credentials to connect to the remote database).
    Edited by: mtefft on Jan 14, 2011 4:14 AM

  • Java JDBC Communication Link Failure

    Hi,
    I have a Java application which utilizes the JDBC mysql connector 5.1.6. It works great, and I am able to connect to my MySQL database just fine and execute queries perfectly.
    However, it seems that if my server idles for certain periods of time without issuing a command to the MySQL server (and this idle period seems to be variant; sometimes if it sites just 5 minutes I get this error, other times it has to idle for close to 25 minutes before it gives me this error):
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    Last packet sent to the server was 1493610 ms ago.Obviously the "... ms ago" part varies based on how long the server was idling.
    This is a particular problem for me because the purpose of my application is to be one part in more of an enterprise information system. So this connection to the database is intended to make an update every 25 minutes to update a user's session data in my database. Unfortunately, when idling for this long it will just error out.
    My temporary solution has been to catch this exception, reconnect, and re-issue the query which is working, but that's like putting a band-aid on a wound that needs stitches. The real problem is I have so many areas in my code where I execute commands that it would make it difficult to maintain if I had to use this Try-Catch method of reconnecting in each spot.
    Is there some timeout setting I need to set in MySQL or in the JDBC to stopt his error from happening? I have read the MySQL documentation and its timeout is already set to an hour so that shouldn't be the problem...
    Thanks!

    I searched for this on google:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
    and here is a link that might help:
    http://forums.mysql.com/read.php?39,199085,204628#msg-204628
    I think the key to your problem is the last line in that link. In connection pooling, you should get a connection, use it, then close it as quickly as possible (ideally, all in the same function within try/catch/finally block) for each time you need to use a connection (hundreds of times within your application). I suspect you open a connection and keep it open with the anticipation that there is a performance penalty in alternatively opening and closing it hundreds of times. There is none. The act of getting and closing a connection from a connection pool is a lightweight operation (in terms of performance). I suggest going back and refactoring your code with the above in mind. That way, your connections will never time out (they are only open for a few milliseconds at a time).

  • CLI0108E Communication link failure. After clone machine

    AIX 5.3
    SAP R / 3 4.7 Enterprise 110
    DB2 9.5 fix pack 2
    We did a clone machine that already had SAP and DB2 9.5 installed and changed the host and ip.
    After adjustments sidadm user profiles, user db2prd and adjust db2conf password file, database and SAP initialize however, is occurring Dumps:.
    Database error text........: "CLI0108E Communication link failure.
    SQLSTATE=40003"  
    Previously the same dump occurred when accessed RZ10- import profile of active server. Once deleted entries in the tables  TPFET and TPFHT dump no longer occurs in RZ10.
    The dump occurs in certain situations such as: SE06-Data base or Data Migration Perform post-installation.After that the dump occurs and the following message appears: connection lost to database, session terminated and closes the connection to SAP.
    I thought about asking the customer to perform the clone in separate network with the same host or conduct a new HSC if no solution.
    I appreciate any help.
    Below are some logs:
    Fri Oct 14 19:19:26 2011
    C  *** ERROR in DB6Fetch[dbdb6.c, 3385] CON = 0 (BEGIN)
    C  &+     DbSlExeReadDB6( SQLFetch ): [IBM][CLI Driver] SQL1224N  The database manager is not able to accept new requests, h
    C  &+     as terminated all requests in progress, or has terminated your particular request due to an error or a force inter
    C  &+     rupt.  SQLSTATE=55032                                                                               
    C  &+                                                                               
    C  &+     SELECT * FROM "E070" WHERE NOT ( "TRKORR" LIKE ? ) AND "TRSTATUS" <> ? AND "TRFUNCTION" IN ( ? , ? , ? , ? , ? , ?
    C  &+      , ? )                                                                               
    C  &+       cursor type=NO_HOLD, isolation=UR, cc_release=NO, optlevel=5, degree=1, op_type=18, reopt=0                    
    C  &+       ABAP location info: 'SAPLSTRO', 1286                                                                           
    C  &+                                                                               
    C  &+     Input SQLDA:                                                                               
    C  &+                        1 CT=CHAR            T=VARCHAR         L=4     P=4     S=0   
    C  &+                        2 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        3 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        4 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        5 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        6 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        7 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        8 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        9 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                                                                               
    C  &+     Input data:                                                                               
    C  &+     row 1: [ERR]       1 CHAR            I=4       "SAP%"
    C  &+                        2 CHAR            I=1       "R"
    C  &+                        3 CHAR            I=1       "C"
    C  &+                        4 CHAR            I=1       "K"
    C  &+                        5 CHAR            I=1       "L"
    C  &+                        6 CHAR            I=1       "R"
    C  &+                        7 CHAR            I=1       "S"
    C  &+                        8 CHAR            I=1       "T"
    C  &+                        9 CHAR            I=1       "W"
    C  &+                                                                               
    C  &+     Output SQLDA:                                                                               
    C  &+                        1 CT=CHAR            T=VARCHAR         L=20    P=20    S=0   
    C  &+                        2 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        3 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        4 CT=CHAR            T=VARCHAR         L=10    P=10    S=0   
    C  &+                        5 CT=CHAR            T=VARCHAR         L=4     P=4     S=0   
    C  &+                        6 CT=CHAR            T=VARCHAR         L=12    P=12    S=0   
    C  &+                        7 CT=CHAR            T=CHAR            L=8     P=8     S=0   
    C  &+                        8 CT=CHAR            T=CHAR            L=6     P=6     S=0   
    C  &+                        9 CT=CHAR            T=VARCHAR         L=20    P=20    S=0   
    C  &+                                                                               
    C  &+     ABAP location info 'SAPLSTRO', 1286                                                                               
    C  &+     SAP user 'PWBASIS', transaction code 'SE06'                                                                      
    C  &+                                                                               
    C  *** ERROR in DB6Fetch[dbdb6.c, 3385] (END)
    B  ***LOG BYM=> severe DB error -1224     ; work process in reconnect status [dbsh#4 @ 1127] [dbsh    1127 ]
    B  ***LOG BY4=> sql error -1224  performing FET on table E070       [dbtran#13 @ 7371] [dbtran  7371 ]
    B  ***LOG BY0=> SQL1224N  The database manager is not able to accept new requests, has terminated all requests in progress, or has terminated your particular request due to an error or a force interrupt.  SQLSTATE=55032 [dbtran#13 @ 7371] [dbtran  7371 ]
    B  dbtran ERROR LOG (hdl_dbsl_error): DbSl 'FET'
    ============================================
    C Fri Oct 14 19:20:18 2011
    C  *** ERROR in DB6Connect[dbdb6.c, 1482] CON = 0 (BEGIN)
    C  &+     DbSlConnectDB6( SQLConnect ): [IBM][CLI Driver] SQL1032N  No start database manager command was issued.  SQLSTATE=
    C  &+     57019                                                                               
    C  &+                                                                               
    C  &+                                                                               
    C  *** ERROR in DB6Connect[dbdb6.c, 1482] (END)
    C  *** ERROR => DbSlConnect to 'PRD' as 'sapprd' failed
    ==========================================
    db2diag.log
    2011-10-14-19.19.27.022877+000 E5735635A801       LEVEL: Critical
    PID     : 1233036              TID  : 5913        PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000
    EDUID   : 5913                 EDUNAME: db2pclnr (PRD) 0
    FUNCTION: DB2 UDB, base sys utilities, sqle_panic, probe:10
    MESSAGE : ADM14001C  An unexpected and critical error has occurred: "Panic".
              The instance may have been shutdown as a result. "Automatic" FODC
              (First Occurrence Data Capture) has been invoked and diagnostic
              information has been recorded in directory
              "/db2/PRD/db2dump/FODC_Panic_2011-10-14-19.19.26.809033/". Please
              look in this directory for detailed evidence about what happened and
              contact IBM support if necessary to diagnose the problem.
    2011-10-14-19.19.26.800536+000 I5720080A624       LEVEL: Severe
    PID     : 1233036              TID  : 14651       PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000         DB   : PRD
    APPHDL  : 0-44                 APPID: *LOCAL.db2prd.111014191834
    AUTHID  : SAPPRD 
    EDUID   : 14651                EDUNAME: db2agent (PRD) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbCleanupBeforeTerm, probe:837
    MESSAGE : ZRC=0x8602001A=-2046689254=SQLB_BADD "Bad Database, Can't flush"
              DIA8427C The database has been marked as being damaged.
    DATA #1 : String, 48 bytes
    A portion of SQLB termination processing failed.
    2011-10-14-19.19.26.801650+000 I5720705A430       LEVEL: Error
    PID     : 1233036              TID  : 5656        PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000
    EDUID   : 5656                 EDUNAME: db2pclnr (PRD) 0
    FUNCTION: DB2 UDB, data protection services, sqlpgild, probe:310
    RETCODE : ZRC=0x8610000D=-2045771763=SQLP_BADLOG "Log File cannot be used"
              DIA8414C Logging can not continue due to an error.
    2011-10-14-19.48.44.487238+000 E6321299A549       LEVEL: Severe
    PID     : 1019968              TID  : 258         PROC : db2wdog 0
    INSTANCE: db2prd               NODE : 000
    EDUID   : 258                  EDUNAME: db2wdog 0
    FUNCTION: DB2 UDB, base sys utilities, sqleWatchDog, probe:20
    MESSAGE : ADM0503C  An unexpected internal processing error has occurred.  ALL
              DB2 PROCESSES ASSOCIATED WITH THIS INSTANCE HAVE BEEN SHUTDOWN. 
              Diagnostic information has been recorded.  Contact IBM Support for
              further assistance

    Hi Shahin,
    At the time I did not find a solution, so I installed the R / 3 4.7 on a machine with the same host and then I did a homogeneous system copy.
    At the time I did not find a solution, so I installed the R / 3 4.7 on a machine with the same host and then I did a homogeneous system copy.
    Perhaps an export base correct the problem. I have not tried the time.
    If you find a solution, let us know.
    regards,
    Emerson

  • Using database-link in view to get around ORA-01031 error

    I have been granted select rights on a users table. I am therefore able to select from his table. If however I try create a view against his table I run into the ORA-01031 problem. I have worked around this problem by creating a database-link to myself and then adding that to the view creation and it works. What are the downsides of using the database-link in this way?

    The only down side I have been able to identify is that a extra session is created and that the CPU has a little extra work due to the LOOP BACK that takes place. I need to ensure the network is not unnessesarly used and therefore will need to ensure that 127.0.0.1 (local host) is used in the database connection discription. e.g.
    create database link my_db_link connect to scott identified by tiger using '(description=(address=(protocol=tcp)(host=127.0.0.1) (Port = 1521) ) (connect_data= (sid=ora10g)))';

  • 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

  • Creation of Database link and access the same plus Snapshot creation

    i want talk between two oracle server. i decided to go for snapshot creation with periodical refresh. For which i am having two oracle server's with different ip address located inside our office setup.
    I have created a database link between two servers.
    first server name global
    userid scott
    password tiger
    second server name asil
    userid scott
    password tiger
    both the user have been given dba rights.
    in both the server the services and listners are all started. i gave the following command to create database link.
    from asil server
    create public database link global connect by scott identified by tiger using 'global'
    the command was successful and the link was created. Now i tried to access a table of the scott user of the global server.
    select * from emp@global;
    now it is giving error. I want to know how the link can be created and how it can be accessed. i refered the 8i online documentation and done the things based on that. i expect valuble solution from all possible persons
    null

    A reason for this problem could be that your database is configured that a database link has to have exactly the same name like the global name of the database instance it should connect to.
    Can you please provide the oracle error code / message ? With this information there might be more hints I can give you.

  • 20 Index Restriction on Remote Tables (i.e. using Database Links)

    The Oracle Database Administrator's Guides for 10g and 11g document a performance restriction that "No more than 20 indexes are considered for a remote table." If I go back to the 8i documentation it says "In cost-based optimization, no more than 20 indexes per remote table are considered when generating query plans. The order of the indexes varies; if the 20-index limitation is exceeded, random variation in query plans may result."
    Does anyone have more details on this performance restriction? In particular I am trying to answer these questions:
    1) Are the 20 indexes which are considered by the CBO still random in 10g?
    2) Can I influence which indexes are considered with index hints or will my hints only be considered if they are for one of the "random" 20 indexes which are being considered by the CBO?
    3) Are there any other approaches or work-arounds to this restriction assuming you need to select from a large remote table with more than 20 indexes (and need to perform the selection using 1 of those indexes to get adequate performance) or do we need to abandon database links for this table?
    Thanks in advance for your input.

    So, here's my simple test.
    SQL>
    SQL> create table gurnish.indexes20plus ( n1 number, n2 number, n3 number, n4 number, n5 number, n6 number, n7 number,
    2 n8 number, n9 number, n10 number, n11 number, n12 number, n13 number, n14 number, n15 number, n16 number,
    3 n17 number, n18 number, n19 number, n20 number, n21 number, n22 number, n23 number, n24 number,
    4 n25 number, n26 number, n28 number);
    create index xin1 on indexes20plus (n1);
    Table created.
    SQL> SQL> create index xin2 on indexes20plus (n2);
    create index xin3 on indexes20plus (n3);
    Index created.
    SQL> SQL>
    Index created.
    SQL> SQL> create index xin4 on indexes20plus (n4);
    Index created.
    SQL> SQL>
    Index created.
    SQL> SQL> create index xin5 on indexes20plus (n5);
    create index xin6 on indexes20plus (n6);
    Index created.
    SQL> SQL>
    Index created.
    SQL> SQL> create index xin7 on indexes20plus (n7);
    Index created.
    SQL> SQL> create index xin8 on indexes20plus (n8);
    Index created.
    SQL> SQL> create index xin9 on indexes20plus (n9);
    Index created.
    SQL>
    SQL> create index xin10 on indexes20plus (n10);
    Index created.
    SQL> SQL> create index xin11 on indexes20plus (n11);
    create index xin12 on indexes20plus (n12);
    create index xin13 on indexes20plus (n13);
    Index created.
    SQL> SQL>
    Index created.
    SQL> SQL>
    Index created.
    SQL> SQL> create index xin14 on indexes20plus (n14);
    Index created.
    SQL> SQL> create index xin15 on indexes20plus (n15);
    Index created.
    SQL>
    SQL> create index xin16 on indexes20plus (n16);
    Index created.
    SQL>
    SQL> create index xin17 on indexes20plus (n17);
    Index created.
    SQL> SQL> create index xin18 on indexes20plus (n18);
    Index created.
    SQL> SQL> create index xin19 on indexes20plus (n19);
    Index created.
    SQL> SQL> create index xin20 on indexes20plus (n20);
    Index created.
    SQL> SQL> create index xin21 on indexes20plus (n21);
    Index created.
    declare
    i number;
    begin
    for i in 1..100
    loop
    dbms_random.seed(i+100);
    insert into indexes20plus values (dbms_random.value(1,5),dbms_random.value(1,21),dbms_random.RANDOM, dbms_random.RANDOM,dbms_random.value(1,20),
    dbms_random.value(1,4),dbms_random.value(1,6), dbms_random.value(1,7),dbms_random.value(1,9),dbms_random.value(1,10),
    dbms_random.value(1,11),dbms_random.value(1,12),dbms_random.value(1,13),dbms_random.value(1,14),dbms_random.value(1,1),
    dbms_random.value(1,1),dbms_random.value(1,19),dbms_random.value(1,122),dbms_random.value(1,20),dbms_random.value(1,20)
    ,dbms_random.value(4,20),dbms_random.value(1,20),dbms_random.value(1,20),dbms_random.value(1,20),dbms_random.value(1,20)
    ,dbms_random.value(4,20),dbms_random.value(4,20));
    end loop;
    commit;
    end;
    SQL> set autotrace traceonly
    SQL> l
    1* select * from gurnish.indexes20plus@lvoprds where n1 = 4
    SQL> /
    no rows selected
    Execution Plan
    Plan hash value: 441368878
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU
    )| Time | Inst |
    | 0 | SELECT STATEMENT REMOTE | | 1 | 351 | 1 (0
    )| 00:00:01 | |
    | 1 | TABLE ACCESS BY INDEX ROWID| INDEXES20PLUS | 1 | 351 | 1 (0
    )| 00:00:01 | LVPRD |
    |* 2 | INDEX RANGE SCAN | XIN1 | 1 | | 1 (0
    )| 00:00:01 | LVPRD |
    Predicate Information (identified by operation id):
    2 - access("A1"."N1"=4)
    Note
    - fully remote statement
    - dynamic sampling used for this statement
    Statistics
    0 recursive calls
    0 db block gets
    0 consistent gets
    0 physical reads
    0 redo size
    1897 bytes sent via SQL*Net to client
    481 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    SQL> select * from gurnish.indexes20plus@lvoprds where n21 = 4;
    no rows selected
    Execution Plan
    Plan hash value: 2929530649
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU
    )| Time | Inst |
    | 0 | SELECT STATEMENT REMOTE | | 1 | 351 | 1 (0
    )| 00:00:01 | |
    | 1 | TABLE ACCESS BY INDEX ROWID| INDEXES20PLUS | 1 | 351 | 1 (0
    )| 00:00:01 | LVPRD |
    |* 2 | INDEX RANGE SCAN | XIN21 | 1 | | 1 (0
    )| 00:00:01 | LVPRD |
    Predicate Information (identified by operation id):
    2 - access("A1"."N21"=4)
    Note
    - fully remote statement
    - dynamic sampling used for this statement
    Statistics
    1 recursive calls
    0 db block gets
    0 consistent gets
    0 physical reads
    0 redo size
    1897 bytes sent via SQL*Net to client
    481 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    SQL>

  • HELP! FOR LOOP TO SCROLL THROUGH TABLE AND CREATE DATABASE LINK

    Hi,
    Here's the scenario, not much of a PL programmer, just basic SQL so really need some help people!
    I have 2 tables. 1 contains list of DB's and the other contains rules to follow.
    I need to create a loop that goes through the table containing the DB's and on each row a DB link is created (Only 1 link allowed!)
    Once created, the schema currently logged in with also has an account on the linked DB in order to run scripts- The scripts are stored centrally hence the requirement for the link to the target DB.
    There are numerous scripts that need to be executed and can all be called from 1 script, once executed the loop exists and the database link needs to be dropped.
    Once dropped, the first loop continues, creating a DB link for the next DB listed in the table (and all the scripts are fired again)
    This continues against all the DB's listed in the table.

    Hi BlueShadow,
    Thanks again for the response, you've hit the nail on the head. SQL scripts on a unix server, a loop goes through a table 1 at a time. Each row gets a link created and then all the scripts stored on the server are executed against the db linked to. So I'm assuming this is a loop within a loop.
    1 loop to go through the table to create the link and then another loop within once connected to execute all the scripts against the connected DB. Once the scripts are run, the loop exits and moves onto the next server and so on until all the servers have the scripts are run.
    It's PL/SQL scripts we're after and not shell scripts as this would free us from the OS constraints.
    We have to drop the links due to security. Any idea on o

  • Database link error when compiling forms 6.0 and forms 6i.

    Dear sirs,
    We have a database link between two databases of the same version oracle 8.0.5.
    Recently we have upgraded one of our databases to version 9.2.0.1 (the database where the database link was originally created ) and now we are having problems when compiling forms that have PL/SQL blocks using the database link.
    The error message received when compiling the form is the following:
    ORA-02068: Following severe error from dbproduc.world
    ORA-00600: Internal error code, arguments: [No conversion op],[],[],[],[],[],[],[]
    The forms did not present this error before, it began when we made the upgrade.
    Is this a FORMS 6.0 problem ?
    Is this an ORACLE 8.0.5 problem ?
    Is this an ORACLE 9.2.0.1 problem ?
    Can you please give me some advice to solve this problem ?
    Thanks in advance

    As I see, when you use a non-oracle database the tables don`t appear, you must create the realation with the table manually, on the properties

Maybe you are looking for