Use of non-migratable database link not allowed - weblogic

Can somebody help me with this error?
The application use an entity bean for a view that use a dblink for accesing a table from another oracle database.
Thank you.
javax.ejb.EJBException: EJB Exception: ; nested exception is:
     Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-24777: use of non-migratable database link not allowed
Error Code: 24777
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:120)
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:102)
     at $Proxy190.queryVCommentMonitoring(Unknown Source)
     at ro.uct.capone.viewcontroller.Utils.getStatus(Utils.java:36)
     at ro.uct.capone.viewcontroller.forms.WatchListForm.validate(WatchListForm.java:114)
     at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-24777: use of non-migratable database link not allowed

I've gotten past this by creating the dblink as SHARED.
The SQL is
CREATE SHARED DATABASE LINK "yourlink"
CONNECT TO "dbuser" IDENTIFIED BY "dbuserpassword"
AUTHENTICATED BY "dbuser" IDENTIFIED BY "dbuserpassword"
USING 'databasename';
note the quote character use.
You can also use SQL Developer to adjust this.
This does depend on shared database connections between your db's.

Similar Messages

  • Use of non-migratable database link not allowed in OSB

    Hi All,
    I have a procedure in which tables are invoked using Database links.
    Now I have created a business service which uses this procedure. However I am getting below error
    The invocation resulted in an error: Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/E2xInterface_V1/WSDL/GetEWOStatus [ GetEWOStatus_ptt::GetEWOStatus(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'GetEWOStatus' failed due to: Stored procedure invocation error.
    Error while trying to prepare and execute the SP_GETEWOSTATUS API.
    An error occurred while preparing and executing the SP_GETEWOSTATUS API. Cause: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-24777: use of non-migratable database link not allowed
    can we use dblink in procedure while accessing through business service. Please let me know.
    Thanks
    Chandana

    hello gurus . i have same problem on my stored procedure what is a non xa datasource. how can i create on my weblogic server

  • Use of non-migratable database link not allowed ERROR

    Hello,
    We have a notification process (on disabled user) in OIM that needs to connect to a schema in another instance to check some information before the notification is sent out.
    We have OIM in an instance A and the other schema lives in the instance B. We created a database link from A to B, some synonyms, and grant the right permissions for OIM to select the tables in the schema on instance B.
    We can login to OIM using SQL Developer and execute the query without any problems.
    However, when the query is executed in the Disable User process task, we got the error:
    java.sql.SQLException: ORA-24777: use of non-migratable database link not allowed
    We tried to create a view in OIM that is similar to the one that lives in the schema in instance B. However, the same error exists.
    How can we work around this error?
    Thanks

    with all the info you have put here all I can say is : (with some help from google ;-) )
    ORA-24777: use of non-migratable database link not allowed
    Cause: The transaction, which needs to be migratable between sessions, tried to access a remote database from a non-multi threaded server process.
    Action: Perform the work in the local database or open a connection to the remote database from the client. If multi threaded server option is installed, connect to the Oracle instance through the dispatcher.

  • Non-whitespace characters are not allowed ...

    I'm trying to parse the following XML fragment into a DOM Document object:
    <CNetSpecs><section name="General
    "><spec name="Printer Type
    ">Personal printer - ink-jet - colour
    </spec><spec name="Weight
    ">6.4 kg
    </spec></section><section name="Printer
    "><spec name="Print Speed
    ">Up to 15 ppm - black draft ? Up to 15 ppm - colour draft ? Up to 0.65 min/page - photo best - 101.6 x 152.4 mm ? Up to 1.28 min/page - photo best - 203 x 254 mm
    </spec><spec name="Built-in Devices
    ">Preview screen
    </spec><spec name="Max Resolution ( B&W )
    ">5760 dpi x 1440 dpi
    </spec><spec name="Max Resolution ( Colour )
    ">5760 dpi x 1440 dpi
    </spec></section><section name="Software / System Requirements
    "><spec name="OS Required
    ">Microsoft Windows 98 Second Edition / Windows ME, Apple MacOS X 10.1, Apple MacOS X 10.2, Microsoft Windows 2000 / XP, Apple MacOS 8.6 - 9.2
    </spec></section></CNetSpecs>The fragment is pulled out of a text field in a database.
    The code I'm using to do the parseing is:
    // Parse the CNet XML into a proper doc.
    DOMParser parser = new DOMParser();
    parser.parse(new InputSource(new StringReader(cnetSpecs)));
    org.w3c.dom.Document cnetXml = parser.getDocument();
    xmlUtil.toFile(cnetXml, "/tmp/cnetxml.xml");
    NodeList cnetRoot = cnetXml.getElementsByTagName("CNetSpecs");
    Node CNetStatsNode = xml.importNode(cnetRoot.item(0), true);
    root.appendChild(CNetStatsNode);and I get the following errors:
    [Error] :1:107: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Personal printer - ink-jet - colour'.
    [Error] :1:150: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '6.4 kg'.
    [Error] :1:391: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Up to 15 ppm - black draft ? Up to 15 ppm - colour draft ? Up to 0.65 min/page - photo best - 101.6 x 152.4 mm ? Up to 1.28 min/page - photo best - 203 x 254 mm'.
    [Error] :1:452: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Preview screen'.
    [Error] :1:528: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '5760 dpi x 1440 dpi'.
    [Error] :1:603: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '5760 dpi x 1440 dpi'.
    [Error] :1:847: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Microsoft Windows 98 Second Edition / Windows ME, Apple MacOS X 10.1, Apple MacOS X 10.2, Microsoft Windows 2000 / XP, Apple MacOS 8.6 - 9.2'.Can anyone point me in the right direction? I've been scratching my head all day.

    I dont think so that it is because of un-escaped "&" character or breaking line sequences.
    As in mine case it is giving for XML as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <publicationManifest date="03/13/2007 14:06:25">
    <contentItem action="add" expireDate="" releaseDate="" revision="1">
    <content>This would go under webstore</content>
    <metadata>This would go for Database</metadata>
    </contentItem>
    </publicationManifest>
    and console output at java IDE is
    [Error] item-manifest_Test.xml:4:46: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'This would go under webstore'.
    [Error] item-manifest_Test.xml:5:45: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'This would go for Database'.
    Therefore , if anyone had found the root cause of this discrepancy please update this topic.

  • Switchover_status in standby database showing NOT ALLOWED

    Hi All,
    My oracle database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit on windows platform.
    I need to perform switchover activity with dg_broker=TRUE.
    When I checked the status of DR database I found that switchover_status is NOT ALLOWED rather than SESSION ACTIVE or TO PRIMARY.I have doubt whether switchover can be done successfully or not with this configuration?
    *Parameters from spfile in production database
    =======================================
    maxprod.__db_cache_size=2046820352
    maxprod.__java_pool_size=16777216
    maxprod.__large_pool_size=16777216
    maxprod.__shared_pool_size=352321536
    maxprod.__streams_pool_size=0
    *.audit_file_dest='C:\oracle\product\10.2.0\admin\maxprod\adump'
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\maxprod\bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\MaximoData\oradata\maxprod\CONTROL01.CTL','D:\MaximoData\oradata\maxprod\CONTROL02.CTL','D:\MaximoData\oradata\maxprod\CONTROL03.CTL'
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\maxprod\cdump'
    *.cursor_sharing='EXACT'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='maxprod'
    *.db_recovery_file_dest='D:\MaximoData\flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.dg_broker_start=TRUE
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=maxprodXDB)'
    *.fal_client='MAXPROD'
    *.fal_server='EAMDR'
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(MAXPROD,EAMDR)'
    *.log_archive_dest_1='location=D:\MaximoData\Archive_Log valid_for=(all_logfiles,all_roles)'
    *.log_archive_dest_2='SERVICE=EAMDR VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=EAMDR'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_max_processes=30
    *.log_archive_start=true
    *.log_buffer=100000000
    *.nls_language='AMERICAN'
    *.open_cursors=8000
    *.pga_aggregate_target=848297984
    *.processes=300
    *.remote_login_passwordfile='EXCLUSIVE'
    *.session_cached_cursors=20
    *.sga_max_size=4294967296
    *.sga_target=2550136832
    *.sql92_security=TRUE
    *.standby_archive_dest='D:\MaximoData\Archive_Log\standby'
    *.standby_file_management='auto'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\maxprod\udump'*
    *Parameters from spfile in DR database
    ============================
    maxprod.__db_cache_size=3187671040
    eamdr.__db_cache_size=1073741824
    maxprod.__java_pool_size=16777216
    eamdr.__java_pool_size=16777216
    maxprod.__large_pool_size=16777216
    eamdr.__large_pool_size=16777216
    maxprod.__shared_pool_size=1056964608
    eamdr.__shared_pool_size=486539264
    maxprod.__streams_pool_size=0
    eamdr.__streams_pool_size=0
    *.audit_file_dest='C:\oracle\product\10.2.0\admin\EAMDR\adump'
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\EAMDR\bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\MAXIMODATA\ORADATA\MAXPROD\CONTROL01.CTL','D:\MAXIMODATA\ORADATA\MAXPROD\CONTROL02.CTL','D:\MAXIMODATA\ORADATA\MAXPROD\CONTROL03.CTL'#Restore Controlfile
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\EAMDR\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='maxprod'
    *.db_recovery_file_dest_size=10737418240
    *.db_recovery_file_dest='D:\MaximoData\flash_recovery_area'
    *.DB_UNIQUE_NAME='EAMDR'
    *.dg_broker_start=TRUE
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=maxprodXDB)'
    *.fal_client='EAMDR'
    *.fal_server='MAXPROD'
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(MAXPROD,EAMDR)'
    *.log_archive_dest_1='LOCATION=D:\MaximoData\Archive_Log VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=EAMDR'
    *.log_archive_dest_2='service=maxprod valid_for=(online_logfiles,primary_role) db_unique_name=MAXPROD'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_max_processes=30
    *.nls_language='AMERICAN'
    *.open_cursors=8000
    *.pga_aggregate_target=194967296
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_max_size=4294967296
    *.sga_target=1594967296
    *.standby_archive_dest='D:\MaximoData\Archive_Log\standby'
    *.standby_file_management='AUTO'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\EAMDR\udump'*
    I didn't find any DG_BROKER_CONFIG_FILE1, DG_BROKER_CONFIG_FILE2 parameters from spfile in both production and DR db?
    Is anything missing in spfile?
    When I am trying to connect with dgmgrl
    DGMGRL>connect sys;
    connected
    DGMGRL>show configuration;
    Error: ORA-16532: Data Guard broker configuration does not exist
    what does it mean when dgmgrl is set to true?
    I have attached PRODUCTION and DR queries outputs for better understanding.
    IN PRIMARY DATABASE
    SQL>select database_role from v$database;
    DATABASE_ROLE
    PRIMARY
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
    DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
    maxprod PRIMARY READ WRITE ARCHIVELOG MAXIMUM PERFORMANCE
    SQL> select process,status,client_process,sequence# from v$managed_standby;
    PROCESS STATUS CLIENT_P SEQUENCE#
    ARCH CLOSING ARCH 7820
    ARCH CLOSING ARCH 7835
    ARCH CLOSING ARCH 7835
    ARCH CLOSING ARCH 7821
    ARCH CLOSING ARCH 7822
    ARCH CLOSING ARCH 7822
    ARCH CLOSING ARCH 7793
    ARCH CLOSING ARCH 7823
    ARCH CLOSING ARCH 7824
    ARCH CLOSING ARCH 7824
    ARCH CLOSING ARCH 7825
    ARCH CLOSING ARCH 7825
    ARCH CLOSING ARCH 7826
    ARCH CLOSING ARCH 7826
    ARCH CLOSING ARCH 7827
    ARCH CLOSING ARCH 7827
    ARCH CLOSING ARCH 7828
    ARCH CLOSING ARCH 7828
    ARCH CLOSING ARCH 7829
    ARCH CLOSING ARCH 7829
    ARCH CLOSING ARCH 7830
    ARCH CLOSING ARCH 7830
    ARCH CLOSING ARCH 7831
    ARCH CLOSING ARCH 7831
    ARCH CLOSING ARCH 7832
    ARCH CLOSING ARCH 7832
    ARCH CLOSING ARCH 7833
    ARCH CLOSING ARCH 7833
    ARCH CLOSING ARCH 7834
    ARCH CLOSING ARCH 7834
    30 rows selected.
    SQL> sho parameter log_archive_config
    NAME TYPE VALUE
    log_archive_config string DG_CONFIG=(MAXPROD,EAMDR)
    SQL> spool off
    IN SECONDARY DATABASE
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS --------------------
    NOT ALLOWED
    SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
    DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
    EAMDR PHYSICAL STANDBY MOUNTED ARCHIVELOG MAXIMUM PERFORMANCE
    SQL> select process,status,client_process,sequence# from v$managed_standby;
    PROCESS STATUS CLIENT_P SEQUENCE#
    ARCH CLOSING ARCH 7809
    ARCH CLOSING ARCH 7810
    ARCH CLOSING ARCH 7812
    ARCH CLOSING ARCH 7813
    ARCH CLOSING ARCH 7814
    ARCH CLOSING ARCH 7815
    ARCH CLOSING ARCH 7816
    ARCH CLOSING ARCH 7817
    ARCH CLOSING ARCH 7818
    ARCH CLOSING ARCH 7819
    ARCH CLOSING ARCH 7820
    ARCH CLOSING ARCH 7821
    ARCH CLOSING ARCH 7822
    ARCH CLOSING ARCH 7823
    ARCH CLOSING ARCH 7824
    ARCH CLOSING ARCH 7825
    ARCH CLOSING ARCH 7826
    ARCH CLOSING ARCH 7827
    ARCH CLOSING ARCH 7828
    ARCH CLOSING ARCH 7829
    ARCH CLOSING ARCH 7830
    ARCH CLOSING ARCH 7831
    ARCH CLOSING ARCH 7832
    ARCH CLOSING ARCH 7833
    ARCH CLOSING ARCH 7835
    ARCH CLOSING ARCH 7804
    ARCH CLOSING ARCH 7805
    ARCH CLOSING ARCH 7806
    ARCH CLOSING ARCH 7807
    ARCH CLOSING ARCH 7808
    MRP0 WAIT_FOR_LOG N/A 7836
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE

    Meenakshy singh wrote:
    Hi All,
    My oracle database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit on windows platform.
    I need to perform switchover activity.When I checked the status of DR database I found that switchover_status is NOT ALLOWED rather than SESSION ACTIVE or TO PRIMARY.I have doubt whether switchover can be done successfully or not?
    I have attached PRODUCTION and DR queries outputs for better understanding.
    IN PRIMARY DATABASE
    SQL>select database_role from v$database;
    DATABASE_ROLE
    PRIMARY
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
    DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
    maxprod PRIMARY READ WRITE ARCHIVELOG MAXIMUM PERFORMANCE
    SQL> select process,status,client_process,sequence# from v$managed_standby;
    PROCESS STATUS CLIENT_P SEQUENCE#
    ARCH CLOSING ARCH 7820
    ARCH CLOSING ARCH 7835
    ARCH CLOSING ARCH 7835
    ARCH CLOSING ARCH 7821
    ARCH CLOSING ARCH 7822
    ARCH CLOSING ARCH 7822
    ARCH CLOSING ARCH 7793
    ARCH CLOSING ARCH 7823
    ARCH CLOSING ARCH 7824
    ARCH CLOSING ARCH 7824
    ARCH CLOSING ARCH 7825
    ARCH CLOSING ARCH 7825
    ARCH CLOSING ARCH 7826
    ARCH CLOSING ARCH 7826
    ARCH CLOSING ARCH 7827
    ARCH CLOSING ARCH 7827
    ARCH CLOSING ARCH 7828
    ARCH CLOSING ARCH 7828
    ARCH CLOSING ARCH 7829
    ARCH CLOSING ARCH 7829
    ARCH CLOSING ARCH 7830
    ARCH CLOSING ARCH 7830
    ARCH CLOSING ARCH 7831
    ARCH CLOSING ARCH 7831
    ARCH CLOSING ARCH 7832
    ARCH CLOSING ARCH 7832
    ARCH CLOSING ARCH 7833
    ARCH CLOSING ARCH 7833
    ARCH CLOSING ARCH 7834
    ARCH CLOSING ARCH 7834
    30 rows selected.
    SQL> sho parameter log_archive_config
    NAME TYPE VALUE
    log_archive_config string DG_CONFIG=(MAXPROD,EAMDR)
    SQL> spool off
    IN SECONDARY DATABASE
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS --------------------
    NOT ALLOWED
    SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
    DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
    EAMDR PHYSICAL STANDBY MOUNTED ARCHIVELOG MAXIMUM PERFORMANCE
    SQL> select process,status,client_process,sequence# from v$managed_standby;
    PROCESS STATUS CLIENT_P SEQUENCE#
    ARCH CLOSING ARCH 7809
    ARCH CLOSING ARCH 7810
    ARCH CLOSING ARCH 7812
    ARCH CLOSING ARCH 7813
    ARCH CLOSING ARCH 7814
    ARCH CLOSING ARCH 7815
    ARCH CLOSING ARCH 7816
    ARCH CLOSING ARCH 7817
    ARCH CLOSING ARCH 7818
    ARCH CLOSING ARCH 7819
    ARCH CLOSING ARCH 7820
    ARCH CLOSING ARCH 7821
    ARCH CLOSING ARCH 7822
    ARCH CLOSING ARCH 7823
    ARCH CLOSING ARCH 7824
    ARCH CLOSING ARCH 7825
    ARCH CLOSING ARCH 7826
    ARCH CLOSING ARCH 7827
    ARCH CLOSING ARCH 7828
    ARCH CLOSING ARCH 7829
    ARCH CLOSING ARCH 7830
    ARCH CLOSING ARCH 7831
    ARCH CLOSING ARCH 7832
    ARCH CLOSING ARCH 7833
    ARCH CLOSING ARCH 7835
    ARCH CLOSING ARCH 7804
    ARCH CLOSING ARCH 7805
    ARCH CLOSING ARCH 7806
    ARCH CLOSING ARCH 7807
    ARCH CLOSING ARCH 7808
    MRP0 WAIT_FOR_LOG N/A 7836
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    RFS IDLE UNKNOWN 0
    56 rows selected.
    SQL> sho parameter log_archive_config
    NAME TYPE VALUE
    log_archive_config string DG_CONFIG=(MAXPROD,EAMDR)
    SQL> spool off
    1.In this case,is switchover is possible?No
    2.If not possible then what will be the next step?If the value in the SWITCHOVER_STATUS column is SESSIONS ACTIVE, identify and terminate active user or SQL sessions that might prevent a switchover from being processed.
    If, after performing these steps, the SWITCHOVER_STATUS column still displays SESSIONS ACTIVE, you can successfully perform a switchover by appending the WITH SESSION SHUTDOWN clause to the
    ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY statement.
    3.Is this will impact to our production database when switchover is not successfully perform?
    4.In DR RFS is idle,why?Can you paste here log_archive_dest_n paramete which is you are using for transport?
    Did you using DELAY attribute in log_archive_dest_n parameter?
    Mahir

  • Database Link not Active

    I am trying to create a database link from Oracle 7.3.4 to Oracle 8i. When I click the "Test" button in OEM ( after entering the relevant data) I am getting an error that reads "Database Link not Active". What am I doing wrong? can someone help?

    Hi ,
    Thanks again for your quick and extremely helpful response.
    As you have guessed this is my clients tnsname.ora file. From your response i believe i need to check the tnsnames.ora file of the database itself ( i assume it resides in the server box).
    I used the same exact systax for creating the link and the link was successfully created. But i was not able to access any table and was getting the error "TNS: could not resolve service name." Now i understand that the 7.3 server is not able to connect to the 8i, as it does not know of its existence (as there is no information available in its own tnsnames.ora file). Am i right?
    Thank you once more.
    You will make my day (assuming i understood you right.)

  • VLD-2769 DB link not allowed error

    version: OWB 10.1.0
    situation: target dimension object doesn't reside in same schema as mapping.
    error: VLD-2769 DB link not allowed for target table
    Is there a way to use Public Synonyms or something else to overcome this problem in OWB without having to place the mapping in the same schema as the dimension object or say a table.
    Thank you

    thanks for the reply
    I have a db link for it but I don't think that's the problem, I even have a public synonym for the table.
    Oracle tells me that they dont support mapping in one schema calling a target object in another schema, BUT they said there was a workaround.
    that is what I am trying to find out....
    thanks

  • As a new Macbook Pro user I was saddened to find that the feature of using keywords in iPhoto '11 does not allow showing same under each photo.  I understand this was available in earlier versions.  Any comments?

    As a new Macbook Pro user I was saddened to find that the feature of using keywords in iPhoto '11 does not allow showing same under each photo.  I understand this was available in earlier versions.  Any comments?

    Against TOU which you "agreed" to in order to post in these user to user forums.  If you want to "suggest" something to Apple, do so in the Product Feedback area.

  • ORA-56901: non-constant expression is not allowed for pivot|unpivot values

    Getting following errors
    ORA-56901: non-constant expression is not allowed for pivot|unpivot values
    ORA-06512: at "APPS.PIVOT_AWARD", line 16
    ORA-06512: at line 5
    when i run the following function it is giving error as above.
    can you please help me
    create or replace
    Function Pivot_award return sys_refcursor
    IS
       v_dept    VARCHAR2 (20000);
       v_query   VARCHAR2 (1000);
       op_rs sys_refcursor;
    BEGIN
      SELECT LISTAGG(award_number,',') WITHIN GROUP (ORDER BY award_id)
      INTO V_DEPT FROM xxdl.XXDL_CD_SCHEDULE_K_GTT ;
       v_query :=
          'SELECT *
            FROM (
            select award_name, award_id,award_number from xxdl.XXDL_CD_SCHEDULE_K_GTT)
            PIVOT(max(VAL) for award_number in  ('||v_dept||'))';
       OPEN op_rs FOR v_query;
       return op_rs;
    END;
    SELECT LISTAGG(award_number,',') WITHIN GROUP (ORDER BY award_id)
      INTO V_DEPT FROM xxdl.XXDL_CD_SCHEDULE_K_GTT ;
    Result of 1st query is PPE_T_CAPITAL,XIBNG,XIABP,XIABQ,XIABR,XIABS,XIABT,XIABU,XIABV,XIABW,XIAAE,XIAAF,XIAAG,XIAAH,XIAAI,XIAAJ,XIAAK,XIAAL,XIAAM,XIAAN,XIAAO,XIAAP,XIAAQ,XIAAR,XIAAS,XIAAU,XIAAU,XIAAV,XIAAZ,XIABD,XIABE,XIABF,XIABG,XIABH,XIABI,XIABJ,XIABK,XIABL,XIABM,XIABN,XIAAA,XIAAB,XIAAC,XIAAD,XIABY,XIABZ,XIACA,XIACB,XIACC,XIACD,XIACE,XIACF,XIACG,XIACH,XIACI,XIABA,XIAAW,XIAAX,XIAAY,XIACN,XIACT,XIACU,XIACP,AAAEX,XIACW,XIADC

    Hi Frank,
    Here is the create table and insert script. This is needed for me to show in report rows to columns.
    create table award_test(
      AWARD_NUMBER                            VARCHAR2 (15) ,                                                                                                                                                                                
    AWARD_NAME                              VARCHAR2(30)  ,                                                                                                                                                                               
    TOTAL_PROCEEDS                          NUMBER    ,                                                                                                                                                                                   
    EARNING_PROCS                           NUMBER    ,                                                                                                                                                                                   
    TOT_PROCS_EARNINGS                      NUMBER   ,                                                                                                                                                                                    
    GROSS_PROCS                             NUMBER   ,                                                                                                                                                                                    
    PROC_REF_DEF_ESCR                       NUMBER   ,                                                                                                                                                                                    
    OTH_UNSP_PROCS                          NUMBER  ,                                                                                                                                                                                     
    ISSUANCE_COST                           NUMBER   ,                                                                                                                                                                                    
    WORK_CAP_EXP                            NUMBER 
    --insert script
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAE','CEFA CP',300000000,200,300000200,300,500,600,0,700);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABG','CEFA K',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAS','Escondido Village #3',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('AAAEX','SU2009A',801806000,null,801806000,null,null,null,1806000,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABI','CEFA L-6',17815000,null,17815000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAP','CEFA R',115050508.15,null,115050508.15,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACG','CEFA D',53150000,null,53150000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAB','Stu Union-1962',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAA','Notes Payable-Commercial Paper',350000000,null,350000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABZ','CEFA L-3',9840000,null,9840000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAV','CEFA B',18106540,null,18106540,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAI','Medium Term Notes - Tranche 3',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAZ','Recycling Pool',473379904.44,null,473379904.44,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAY','CEFA T2',187550000,null,187550000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAM','GMAC',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAU','CEFA A/K',16922982,null,16922982,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAC','SU TB 2002A - PARS',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABL','CEFA L-9',15490000,null,15490000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABY','CEFA L-2',8775000,null,8775000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAJ','Frat 1&2',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAW','CEFA S',180727500,null,180727500,null,null,null,-472500,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAQ','Escondido Village #1',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACW','CEFA U',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACF','CEFA E',19753227.34,null,19753227.34,null,null,null,-106772.66,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACN','CEFA T3',27562758.96,null,27562758.96,null,null,null,-47941.04,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAG','Medium Term Notes - Tranche 1',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('PPE_T_CAPITAL','PPE_T_CAPITAL',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAK','Frat 3',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAF','Tresidder',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABH','CEFA L',5055000,null,5055000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAU','CEFA A/K',6605655,null,6605655,null,null,null,-74345,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAD','SU 2024 Bonds',150000000,null,150000000,null,null,null,0,null);Expected output rows to columns (i took first two insert statements)
    'XIAAE','CEFA CP',300000000,200,300000200,300,500,600,0,700
    'XIABG','CEFA K',0,null,0,null,null,null,0,null
    I need to have awardnumber and corresponding details below
    'XIAAE'       'XIABG'
    'CEFA CP'    'CEFA K'
    300000000   0
    200             null
    300000200   0
    This way i need to get all the information vertically with awardnumber. I have written following code but it is not working.
    create or replace
    Function Pivot_award return sys_refcursor
    IS
       v_dept    VARCHAR2 (20000);
       v_query   VARCHAR2 (1000);
       op_rs sys_refcursor;
    BEGIN
      SELECT LISTAGG('''' || award_number || '''',',') WITHIN GROUP (ORDER BY award_number)
      INTO V_DEPT FROM award_test ;
       v_query :=
          'SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                       
    AWARD_NAME,                                                                                                                                                                                                              
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('||v_dept||'))';
       OPEN op_rs FOR v_query;
       return op_rs;
    END;throwing an error ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.PIVOT_AWARD", line 11
    ORA-06512: at line 5
    also when i run simple query
    SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                       
    AWARD_NAME,                                                                                                                                                                                                              
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('PPE_T_CAPITAL','XIBNG','XIABP')) Throwing an error
    ora-01790 Expression must have same datatype as correspoding expression
    Edited by: 893185 on Nov 10, 2011 2:00 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can Jdeveloper Be Used For Non-Oracle Databases

    I have been trying to evaluate Jdeveloper 9i and Jbuilder 7 Enterprise for Swing database development. I am particularly interested in the productivity enhancements such as BC4J and Jclient. The underlying database might be Oracle, SapDb (excellent, easy to use, and free), SQLServer, etc.
    I evaluated Jbuilder Enterprise tools and it worked flawlessly with SapDb. This emphasized using their DataExpress and DbSwing components which provide many useful capabilities similar to BC4j and Jclient. It also involved using their DBPilot tool which allows browsing similar to that provided via a Jdeveloper connection.
    I tried to use Jdeveloper for the same SapDB and it is essentially non-functional. I followed the instructions for using a non-default driver and tried to define a connection. It behaved inconsistently: often saying no suitable driver can be found and yet when you edit the connection and test without making any changes, it works. If you try to establish a BC4J definition, it is very inconsistent and fails to recognize important details as foreign keys. Even if you define a ViewLink manually, it still does not work properly if you attempt to define a Master-Detail Jclient form. As I have stated, all these types of capabilities worked flawlessly in their Jbuilder equivalent. Furthermore, I really like the fact that Jbuilder gives many of BC4Js benefits without needing a BC4J J2EE container.
    Has anyone had real success using Jdeveloper's advanced features to develop for non-Oracle databases and if so, how did you get around these types of problems?

    Hi,
    generally, SCAN can be used for 10g databases and you discovered the first half: for 10g databases you will have to modify the REMOTE_LISTENER entry for each 10g database instance to point to the SCAN listeners (as opposed to pointing to the remote local listeners, which is the default in 10g). You could even have the databases registers themselves with SCAN and the remote listeners, if you wanted to... It's more or less a matter of configuration. But for simplification reasons, I will stick to the case where you have your 10g databases register with the SCAN listeners only.
    Now the other half is the client and the client configuration. An 11g Rel. 2 client configured for RAC would have a TNSNAMES entry that has only one address line for the RAC databases. The host entry in this one address line should point to the SCAN (the SCAN name is ideally resolved in DNS). A 10g client configured for RAC would have as many address lines in the TNSNAMES as you have nodes in the cluster.
    The 10g client SCAN configuration would then be in the middle so to speak: You would have 3 address lines in your TNSNAMES, in which each host entry would resolve to one SCAN address (I assume you will use the recommended default of 3 SCAN IPs). If you choose, you can have a name resolution for each of your SCAN IPs, but this would not be required. Now, why would you do it this way? Because this configuration will always work and does not make you dependent on certain functionality that your DNS server may or may not offer.
    For the remaining questions: SCAN is a DNS entry resolving one name to more than one (typically 3) IP addresses. OID is short for Oracle Internet Directory, which is a complete LDAP server. And you are right that there is no document how to configure 10g clients for SCAN from Oracle yet. However, there is a quite good document on SCAN on otn.oracle.com/rac, but I am sure you are aware of it already.
    Hope that helps. Thanks,
    Markus

  • Database Links not generated

    In OWB 9i, the database links are not generated as part of the mapping anymore. My problem is that I create a new source module and then a mapping using this source module, but it does not generate the code for the database link. When I deploy the mapping it says the database link does not exist, but it does not provide the code for generating the links. Am I missing something? I would appreciate a fast response, since I'm currently giving the OWB course and have to show the students the new 9i features tomorrow (Thursday 15 Aug)! Thanks!!

    Hi Marlene,
    You can get the database link DDL when you generate the Warehouse Module as a whole, open the Warehouse module editor and highlight the Warehouse module, right click and generate. In the generation results filter on DB links and review the scripts, deploy these in the schema where you want to install the mappings.
    To create new db links, go to configuration on the warehouse module where you need to links, in there choose the last entry (database links). This also allows you to delete the ones you don't need.
    Hope this helps,
    Jean-Pierre

  • Using generic format for database links in ODI Procedures

    Hi,
    As in procedure we use
    create table <%=odiRef.getSchemaName("Target Schema","D")%>.TABLE2 as
    select * from <%=odiRef.getSchemaName("Staging Schema","D")%>.TABLE1
    where Staging Database and Target Database are logical schemas which will associate to respective physical schema while execution so the above statement will become as
    create table Target_Schema.TABLE2 as
    select * from staging_Schema.TABLE1
    I just wanted to know if there is any way by which i can apply samethings for Database Links also.
    Like if i have statements
    create table TABLE2@Target_Database as
    select * from TABLE1@staging_Database
    can i replace DB links like Target_Database and Staging_Database?
    Help would be appreciated. :)
    Thanks,
    Mahesh

    I am not entirely sure about the exact requirement.
    Any way ..
    1.
    create 2 variable .
    v_get_src_schema : select '<%=odiRef.getSchemaName("<your_src_logical_schema>","D")%>' from dual
    v_get_tgt_schema : select '<%=odiRef.getSchemaName("<your_tgt_logical_schema>","D")%>' from dual
    2.
    2 more variable to get the required DBLink
    v_SRC_DB_LINK: select DB_LINK from all_db_links where owner='#PRJ_CODE.v_get_src_schema'
    v_TGT_DB_LINK: select DB_LINK from all_db_links where owner='#PRJ_CODE.v_get_tgt_schema'
    3.
    create a procedure :
    prc_create_table :
    create table <%=odiRef.getSchemaName("Target Schema","D")%>.TABLE2@'#PRJ_CODE.v_TGT_DB_LINK' as
    select * from <%=odiRef.getSchemaName("Staging Schema","D")%>.TABLE1@'#PRJ_CODE.v_SRC_DB_LINK'
    4.
    Create a package :
    Connect all the steps in serial with OK line.
    Execute and let us know what is the out come .
    Thanks,
    Sutirtha

  • Database link not working properly

    I have to link to another database...I have created an entry in my TNS names on the oracle server and have used the following script to create the link:
    CREATE PUBLIC DATABASE LINK DATA
    CONNECT TO USERNAME IDENTIFIED BY PASSWORD
    USING 'DATA';
    Data is the name of the database sid, and I am able to connect to the server using the username/password@sid in sqlplus. Oracle tells me that the link is created successfully, however if I try to describe user_tables@data I get the following error:
    SQL> desc user_tables@data;
    ERROR:
    ORA-02085: database link DATA connects to DATA.WORLD
    Please help!
    Jes

    You will see this error when the global name of the remote database does not match what you have in your link. Although the link name might match the SID, the fully qualified link name does not.
    You can either:
    1) Set the GLOBAL_NAMES parameter to FALSE in the database in which you have created the database link.
    2) Recreate the link so that the full link matches the global name of the remote db (query GLOBAL_NAME in the remote db if you don't know it)
    Good luck!

  • Database link not working

    Hi,
    I created a database link and i added a tns entry also. But when i try to connect to a database using db link it throws me an error
    ORA-02019: connection description for remote database not found.
    Oralce 10g version on Windows 2003 NT.
    Thanks and Regards
    Jafar

    please check the username which is using Db link.. is it same which you have db links created.
    --Girish                                                                                                                                                                                                                   

  • Database link not working on client

    All,
    Platform : Linux
    I have created a db link called "TEST_TO_MART " on 11.2.0.1 database which is pointing to another 11.2.0.1 database . Both are resides on same server. I'm getting following error when I'm trying to test.
    SQL> sho user
    USER is "TEST_APP"
    SQL> select * from dual@TEST_TO_MART;
    select * from dual@TEST_TO_MART
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ORA-02063: preceding line from TEST_TO_MART
    Process ID: 3466
    Session ID: 360 Serial number: 16949Target database is up and able to connect without any issues.
    Can you guys suggest me what is the problem?
    Thanks.

    Sorry.  My error and situation seemed so close to this unsolved issue from a year ago, that I didn't copy and paste the details initially.  Here goes:
    oracle@linux99 ~]$ sqlplus
    SQL*Plus: Release 11.2.0.3.0 Production on Mon Aug 12 22:56:33 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter user-name: test_dblink_20130812
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> DROP DATABASE LINK "TEST_NOW.MDBT.XXX.COM";
    Database link dropped.
    SQL> CREATE DATABASE LINK "TEST_NOW.MDBT.XXX.COM"
    CONNECT TO APP_UHYDRAST_RW
    IDENTIFIED BY XXXXXXXX
    USING 'mdbt';  2    3    4
    Database link created.
    SQL> select * from dual@TEST_NOW.MDBT.XXX.COM;
    select * from dual@TEST_NOW.MDBT.XXX.COM
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ORA-02063: preceding line from TEST_NOW.MDBT.XXX.COM
    Process ID: 6638
    Session ID: 544 Serial number: 1753
    In listener.ora, we have this (some other DB's are in lower case):
    (SID_DESC =
          (SID_NAME = MDBT)
          (ORACLE_HOME = /ora5/app/oracle/product/11.2.0)
          (GLOBAL_DBNAME = MDBT)
    and, in tnsnames.ora we have this:
    LISTENER_MDBT =
      (ADDRESS = (PROTOCOL = TCP)(HOST = linux99.XXX.com)(PORT = 1522))
    MDBT =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = tcp)(HOST = linux99)(PORT = 1522))
        (CONNECT_DATA =
          (SERVICE_NAME = mdbt.XXX.com)
          (SERVICE_NAME = mdbt)
          (SID = MDBT)

Maybe you are looking for

  • Ipod not recognized by itunes, iphoto on either of my macs

    Ipod is not launching in itunes, or iphoto with either imac or macbook. Have tried restarting both macs, restarting ipod holding both buttons, tried different usb wires and ports.  Any ideas?

  • Dtrace.tar.gz broken?

    Hi! I tried to download dtrace.tar.gz from that weird jsp page at www.opensolaris.org, but it seems to be broken: $ gunzip dtrace.tar.gz gunzip: dtrace.tar.gz: not in gzip format Could just use FTP for files. Version number on filename would be nice

  • Universe on MSAS 2005 Cubes

    Hi, I created a universe based on MSAS 2005 cubes. then i tried to create a webi report, it is throwing an error, where as i can create a report in rich client but unable to perform drill operations in rich client. I am using the Bo XI 3.1 Sp3. I cre

  • Computing Consolidation Entries - YTD Vs Periodic

    Hello Experts: We are in the design phase of the project. Referring to the quesiton asked earlier by Sitaram (Periodic versus YTD computation of consolidating entries), Does any one has comparison between YTD Vs Periodic ? We are in the process of de

  • My iPad said safari can not open page server stopped responding

    MMy iPad air states safari can not open page. Server stopped responding. < Personal Information Edited By Host >