ORA-31600 when trying to view SQL DDL for a created public database link

I created and committed a public database link and I can access the external database.
When I try to view the DDL of the link, on the SQL tab, I'm getting following error:
ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA_INT", line 3900
ORA-06512: at "SYS.DBMS_METADATA_INT", line 4048
ORA-06512: at "SYS.DBMS_METADATA", line 836
ORA-06512: at line 1
and
ORA-31600: invalid input value LONGNAME for parameter NAME in function SET_FILTER
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA_INT", line 1980
ORA-06512: at "SYS.DBMS_METADATA_INT", line 3665
ORA-06512: at "SYS.DBMS_METADATA", line 670
ORA-06512: at "SYS.DBMS_METADATA", line 571
ORA-06512: at "SYS.DBMS_METADATA", line 1221
ORA-06512: at line 1
Is this because of a bug in SqlDeveloper or because the db_link and host parameters have 33 characters?
I'm using sql developer 1.5.3, build MAIN-5783
tx,
Roger Vermeir

It's probably the length; really all sqldev does is calling:
select DBMS_METADATA.get_ddl('DB_LINK',:NAME,:OWNER) FROM dual;So if you call it a bug, it's a database bug in the DBMS_METADATA package.
But if you work with identifiers over 30 chars, I'd say that's a bug on it's own...
FWIW, I can't reproduce this on our 10g DB; are you on 9i?
Regards,
K.

Similar Messages

  • A question about CREATE PUBLIC DATABASE LINK and ORA-12154 error

    Dear all,
    I have a problem about public database link creation and I would appreciate if you could kindly give me a hand. I have the following connection parameters in my
    tnsnames.ora file:
    DGPAPROD.WORLD =
         (DESCRIPTION =
           (ADDRESS_LIST =
            (ADDRESS = (COMMUNITY=tcp.world)
              (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521)
           (CONNECT_DATA = (SID = DGPAPROD))
    ...Having the above mentioned parameters I can connect to this remote database directly in a SQL*Plus shell:
    $ sqlplus username/[email protected] works pretty well and the connection is established without any problem.
    Now, what I would like to do is to create a public database link to this remote database in order to avoid the user/connection switching for viewing the
    content of this database. I proceeded according to the syntax indicated in the Oracle online documentation:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205
    Therefore I run the following in order to create a public database link
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';Apparently there is no error and the link is created successfully. However it cannot resolve the remote host and whenever I run the following query
    (myenterprise is the name of a table in that remote database)
    SELECT *
    FROM myenterprise@SR001_dblink
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specifiedWhat causes this problem?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    spajdy wrote:
    You must have defined DGPAPROD.WORLD in tnsnames.oar on server where you DB is runnig.Hello there,
    Thanks a lot for this nice solution. In fact I had to add the connection parameters into the tnsnames.ora file of the server on which the link was created (not the tnsnames.ora of my oracle client stored on the localhost)
    After a bit googling I found another solution that allows to create the database link:
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING '(DESCRIPTION =  (ADDRESS_LIST =  (ADDRESS = (COMMUNITY=tcp.world)
    (PROTOCOL=TCP)(HOST=ip_adresse)(PORT=1521)))(CONNECT_DATA = (SID = GPAPROD)))';Thanks a lot for your help!
    Kind Regards,
    Dariyoosh
    Edited by: dariyoosh on 18 nov. 2009 07:15

  • Create a database link to access SqlServer 2005 view from oracle 11gr2

    Hi All,
    Greetings for the day.
    Though I have seen quite a few posts but just wanted to cross-verfiy and double check hence posting.
    Oracle Database : 11gr2
    OS :SOLARIS SPARC 64 Bit
    SQL Server Database : Sql Server 2005
    OS : Windows 2003 32 Bit
    The requirement is to access a view residing in the SQL Server 2005 Database using the Oracle Database. This involves creation of a Database link in the Oracle Database to access the SQL Server.
    Can you suggest which approach should i follow ( I am able to understand that both do the same job ):
    How to Configure DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) post install [ID 562509.1]or
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install [ID 561033.1]Will they do the same job ? And can they be used on any OS and version of the SQL Server Database as version information for SQL Server is not specified anywhere?
    Please let me know so that I can it forward with Business for approvals and budgetting.
    Regards
    KK

    Your question is similar to the post: Oracle 11gr2 connection to Sql Server using dg4msql problem
    Please visit: http://stackoverflow.com/questions/4658942/oracle-11gr2-connection-to-sql-server-using-dg4msql-problem
    Answer on the website:
    You seem to be using the Gateway for MySQL set-up rather than the Heterogeneous Gateway (for ODBC connections). Here is an overview of the process
    On SQL Server create a database user and give it read access to the database/tables you want to read via the Oracle database link.
    In the gateway home each SQL Server database you want to access should have an init.ora located in $OH/dg4msql/admin in the form initsid.ora where sid is the name of the database to be used in the link (e.g. initbob.ora), so create one
    HS_FDS_CONNECT_INFO=msserver1:1234//Example_Database
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_TRANSACTION_MODEL=READ_ONLY
    You must now add the new sid to the listener.ora in the gateway home using an additional SID_DESC section inside the existing SID_LIST, for example
    (SID_DESC =
    (SID_NAME=bob)
    (ORACLE_HOME=/oracle/gateway/product/11.2.0)
    (ENVS=LD_LIBRARY_PATH=/oracle/gateway/product/11.2.0/dg4msql/driver/lib;/oracle/gateway/product/11.2.0/lib)
    (PROGRAM=dg4msql)
    You should now stop and restart the gateway listener so that the new sid becomes active. NB a reload is not enough.
    You must now add the new sid in the tnsnames.ora file for the listener of each database in which you will create a link. You don't need to do this in the gateway home unless it is also a database home in which you will create a database link.
    bob =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = severname.example.com)(PORT = 1690))
    (CONNECT_DATA = (SID = bob))
    (HS = OK)
    NB: The host and port are for the gateway not for the SQL Server database
    In each database that requires a link to the MS-SQL database you should create a database link to your new gateway sid.
    CREATE PUBLIC DATABASE LINK bob
    CONNECT TO "ms_user" IDENTIFIED BY "ms-passwd" USING 'bob';
    where ms-user and ms-password are the SQL Server user you created right at the start.
    Now you can test the new database link
    SELECT COUNT(*) FROM "Table_Name"@bob;
    Once you have this working you can alter the initsid.ora file to add parameters to suit your connection. If you do it this way you can easily add and manage many different databases via the gateway.
    Hip
    Edited by: 1000595 on 04:58 17-04-2013

  • ORA-03113 when trying to connect to database

    RDBMS Version:: 9.2.0.6
    Operating System and Version:: Win2003 Small Business Server
    Error Number (if applicable):: ORA-03113
    Server Net Version:: 9.2.0.6
    Client Operating System and Version:: Solaris10
    Client Net Version:: 2.1.3
    ORA-03113 when trying to connect to database
    I've currently a 7.1.3 client on SUN Solaris (5.10 Generic_118844-26 i86pc i386 i86pc) where I want to connect to the 9.2.0.6 database on a Win2003 Server hardware.
    When i try to connect via SQL*Plus (Release 3.1.3.4.1), I get ORA-03113. Looking into the listener resp. alertfile on the server, I can see that the connectiorequest is recognized, but immediately answered by an ORA-0600, producing also trc-files.
    listener: 25-MAI-2007 09:37:23 * (CONNECT_DATA=(SID=HTASQL)(CID=(PROGRAM=)(HOST=eklvpa)(USER=sat250))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.233.3)(PORT=32790)) * establish * HTASQL * 0
    alert: ORA-00600: internal error code, arguments: [12333], [26], [0], [115], [], [], [], []
    Activating traces on the client-side showed the following errors:
    -<ERROR>- ntus2err: sd=8, op=1, resnt[0]=511, resnt[1]=2, resnt[2]=0
    -<ERROR>- nserror: nsres: id=0, op=65, ns=12541, ns2=12560; nt[0]=511, nt[1]=2, nt[2]=0
    -<ERROR>- nsopen: unable to open transport
    -<ERROR>- nsprecv: transport read error
    -<ERROR>- nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0
    -<ERROR>- osnqrc: wanted 1 got 0, type 0
    -<ERROR>- osnqper: error from osnqrc
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12537
    -<ERROR>- osnqper: ns (2) err code: 12560
    -<ERROR>- osnqper: nt main err code: 507
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqsm: send-break: failed to send OOB break...
    -<ERROR>- osnqper: error from send-marker
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12583
    -<ERROR>- osnqper: ns (2) err code: 0
    -<ERROR>- osnqper: nt main err code: 0
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqbr: returning 3113
    Can anybody help me in determining the problem ? Is there a systemtic incompatibility in connecting a 7.1.3 client to a 9.2 (or even higher) database ?

    Thanks for your reply.
    But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
    Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ?

  • Error message when trying to view/print Crystal reports in B1

    I get the following Error message when trying to view/print crystal reports in SAP B1/Crystal Reports Integration Tool for SAP Business One:   
    " Could not load file or assembly 'Crystal Decisions Windows Forms, version=12.0.2000.0, Culture=neutral, Public Key Token=692fbea551e1304'  or one of its dependencies.  The system cannot find the file specified.  ????

    Hi
    Common issues for this :
    1. Once you install crystall add on ,you need to go to Crystal report Administration >Account setup .
    Put on the user name and password and click on creating ext tables
    Try then running the report .
    If not the case ,
    make sure you install runtime .
    You need :
    1.Crystal report basic from SAP download -(Not necessary if you want only report viewer >
    2.You need to have crystal integration addon (I think service pack is SP1)
    3.Make sure you have runtime install
    When you are installing ,make sure you restart your PC before you do or remove temporary file s
    Hope this solves your issue
    Bishal

  • Palm Desktop shuts down when trying to view calendar by month

    I'm using a Palm TX with the latest edition of Desktop installed (I think that's 6.2).  Everything is normal except, suddenly, I cannot view my calendar in monthly view.   Daily, weekly and yearly all work fine.  Desktop shuts down when trying to view in monthly view.  I did a system restart, a Desktop reinstallation, a download of the latest version and installation of that version and, finally, uninstallment of the existing Desktop, download of the newest version and installation of that version.  Nothing seems to enable me to view the calendar in monthly view.  This is a spontaneous event.  I've been running Desktop on a Vista Ultimate system since February without incident.  I have no idea about how to solve this.
    Thanks
    Post relates to: Palm TX

    Well, here's where we are now.  It's a good thing that I have desktop on my office computer because when I tried a Hotsynch with my home desktop, Hotsynch wiped out all the data on my handheld and then hung up both the handheld and desktop in the middle of the Hotsynch.  I'm going to overwrite the entire handheld with the office desktop file.  As for the home setup, I'm thinking the only thing I can do now is uninstall Palm and wipe out the entire directory of files.  Am I correct about this?  Do I need to do a clean uninstall?
    Post relates to: Palm TX

  • ERROR (0×0107, 0×0000) WHEN TRYING TO VIEW A VM CONSOLE

    Hi,
    Getting error (0×0107, 0×0000) when trying to view  vm console via vmm installed on a machine registered to different domain.
    When tried  to connect to the VM it will be asked to authenticate against the host and then we will see a warning about an un trusted certificate
    and once we click OK we will receive the (0×0107, 0×0000) message.
    Tried importing certificate of the hosts to the Trusted Root still seeing the same error. Can anyone please help?

    Hi sathish777,
    Because each domain has its secure boundary ,domain trust is needed for comunication between different domain .
    As a workaround , you may try to logon the "client" locally to be a workgroup machine then use hvremote.swf to manage the hyper-v server remotely :
    https://code.msdn.microsoft.com/Hyper-V-Remote-Management-26d127c6
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • When trying to view a pdf from IE10 I get a small square with an X and not the document.

    When trying to view a pdf from IE10 I get a small square with an X and not the document. I have removed reader completely from the control panel and reinstalled version 11.0.4. I have IE 10 10.0.9200.16721. Need assitance in getting Reader XI setup.

    Hi,
    We have heard few users having similar issue as yours and found out the problem for one of the users is this: http://support.microsoft.com/kb/2716529 .
    I was able to reporduce this problem(square with a 'X') by changing the TabProcGrowth registry entry to 0.
    This tool provided by Microsoft is for Win 8, to run this on Win 7 you can manually change the registry setting : please see " Let me fix it myself" in above url.
    Before running these steps please make sure yours indeed is the same problem.
    Please be very careful as some registry settings (not this one) can create serious problems on a Windows system including causing it to no longer boo
    Let me know how it goes.
    Thank You.

  • Error when trying to view vids on Facebook on Revolution- Have to force close

    Have to force close when trying to view a video on Facebook that was posted with phone. Youtube vids work great it's just not working with ones that were posted by phones and it has worked since I got the phone about a month ago

    DionM_VZW wrote:
    bulldog69 wrote:
    Have to force close when trying to view a video on Facebook that was posted with phone. Youtube vids work great it's just not working with ones that were posted by phones and it has worked since I got the phone about a month ago
    Hello bulldog69! So, these videos you're trying to watch. Were they posted using your phone or someone else's phone? Are the videos viewable using a desktop/laptop computer?
    The videos are posted on Facebook that someone else posted from phone  and my own. It is friends videos which always worked on Fascinate and vids work great on computer. I think a few days ago was able to view one and today same thing have to click force close and even tried using our wifi and same problem. Pulled battery and restarted no luck. So far vids on YouTube work great on Revolution

  • Error when trying to view purchased items in app store

    My ipad has an error when trying to view my "purchased" items in app store, keeps "Loading...." for a while and then close the app.
    All the other options works well (featured, top charts, genius, updates...)
    I already turn off / on the ipad many times, same problem....

    I have the same problem with my iPhone 4s! Need  a solution from Apple!

  • Error when trying to view YouTube videos

    I get the following error when trying to view YouTube videos in some wireless hotspots; "The server is not correctly configured".  It used to work fine at these locations.

    Maybe not as many people reply as you think should because this site doesn't freaking work either!
    Took me ten minutes to log in! Kept getting stupid error messages telling me this site is undergoing maintenance. Whatever.
    Same exact problem here, but Chrome DOES NOT work. Changing DNS servers DOES NOT work either. It doesn't work for a lot of people.
    https://productforums.google.com/forum/#!topic/youtube/axsb7XPieK0
    EDIT**
    WTF this site is more broken than youtube! Constant errors and constantly unresponsive with "greyed out" buttons!
    Is there any competent people left on the planet to fix this crap!?

  • Can see list of old emails, but error message when trying to view message.

    Ok, after a Mail crash (10.4.1), there were no accounts listed and of course no old emails, sent or in the inbox, were visible.
    We reentered all the account info, as if we were starting anew, and now we are able to see the list of all old emails in the inbox and sent mailbox, but when we click on any message before the crash, we get this error message:
    The message from David Crandon, ([email protected]), concerning (the subject of the email), has not been downloaded from the server. You need to take the account online in order to download it.
    Now, obviously, the accounts are online because we can send and receive new emails with no problem, and of course, the old emails aren't going to be on the server anymore.
    Can anyone help?
    Thanks.

    Well, didn't work. I spent an hour and a half just trying to get my 76yr old uncle to back able to drag and drop into the correct folder, and then trying to find the file when he didn't....!
    Anyway, it didn't work. After removing the Envelope Index file, and reimporting the messages, everything was the same. He could still see all his old emails in the list in Mail, but got the same error message when trying to view them.
    Then, we rebuilt the inbox, and now none of his old messages are visible! However, they are still on the computer.
    All his old emails are ".emlx" files and if we click directly on one of them, then Mail will launch and display the message properly in it's own window. But again, we get the above error message if we try to view it by selecting it from the message list in mail.
    One interesting thing...in the Library->Mail folder their are two folders, "Mailboxes" and "Mailboxes.mbox". Both at the same level. It's the Mailboxes.mbox folder that has all his old emails. Although all the old ones have the suffix ".elmx". In the Mailboxes folder are all the new emails since we reset all the prefs in Mail after the crash a couple of days ago.
    Anymore help please to get mail to recognize all these old emails?
    Thanks,
    David

  • When Trying to View an .mov File, PSE 8.0 Crashes... Help

    When Trying to View an .mov File, PSE 8.0 Crashes... Help  I was able to view these .mov files without any problem on ACDSee 2.5, any help will be appreciated to determine why .mov files crashe in the PSE 8.0 viewer....
    Best Regards,
    Larry

    Thanks for the reply Larry. This is frustrating, and Adobe support is useless. It all works on my vista 64 bit system, but not on the 32 bit system. The odd thing is that I can open .mov files in Editor by going to File-Import from video, select "all file types" and choose a quicktime movie and it will open and run just fine. I can take stills off the movie.  But if I try to open the same movie file with File-Open...I get an error message "Cannot open file......wrong file type" In organizer everything just crashes. I suspect there are some security issues in Vista that won't allow PSE to access Quicktime.
    Too bad Windows 7 didn't fix the problem. I was starting to head that way. I will let you know if I find a solution.
    Ron

  • Why do i keep getting this message when trying to view a movie: The shared library "iCloud Purchases" is not accepting connections at this time. Please try again later.

    why do i keep getting this message when trying to view a movie: The shared library “iCloud Purchases” is not accepting connections at this time. Please try again later.

    Same issue. What are they doing?
    Macbook Pro Retina Yosemite 10.10.2

  • Forms crash when trying to view a .bmp.

    I have 2 .bmp file uploaded to our database as a blob
    looking at the 2 files they are identical size, pixel, dpi etc.
    Yet in my system when trying to view the image through forms it one crashes the system and the other displays fine.
    I know it will relate to the image itself as if i resave as a .jpg it works fine.
    But i wondered if there was anyway to work out which aspect of the bmp it was failing on.
    I have tried this in XP, Vista, Win 7. various IE versions all resulting in same behaviour.
    I also tried an old legacy forms system we had running forms 9i on oracle 9i database and the column LONG RAW and this exhibits the same behaviour. i.e. displays one but crashes on other.
    So i know its not a user OS issue nor a Oracle version issue. But we run 10.1.2.3 app server and 10.2.0.5.0 database for record.
    I downloaded G.I.M.P image manipulater and no properties on the 2 .bmps are different.
    Thanks.

    Yes this will work but my customer wants an explanation as to why some will work and some will not. They have thousands of bmps they dont want to amend all another format.
    I can not find any oracle documentation re the correct bmp format that is supported.

Maybe you are looking for

  • ITunes wont sync purchases with my iPod touch?

    I have an iPod 5th generation and my boyfriend has an iPod touch, both synced to the iTunes on this computer. He recently bought some songs through his touch on our iTunes account. on the purchase history, it shows that the songs were bought, and whe

  • Itunes 7.4 for windows playlist

    recently upgraded to itunes 7.4. my old playlists were gone, when i created new ones to sync to ipod later, after shutting down itunes and reopening it the next day my playlists were gone. Cannot save new playlists since. Help please?

  • Desktop icons won't display on Desktop

    I recently installed a couple of what seemed to be interesting menubar items (MenuStrip and Isolator). Shortly after (not concurrent with) I lost the icons that show up on the Desktop of files in the Desktop folder. The files are all intact - nothing

  • How do i get my old photo streame (ios 7.1.2) photos on my device after installing ios 8 on my iphone 5

    hello everyone.. I am kiran from india.. I am using iphone 5, I am facing a problem that when I used ios 7.1.2 on my device my photos were stored on my icloud whenever I was connected via wifi connection and its pretty good experience  and I was enjo

  • How can I connect first generation ipod with 2.4 Ghz Intel iMac running Lion

    I there, I'm trying to connect my first generation ipod with my iMac (intel 2.4 Ghz), which is running Lion, however when I connect the wifi, it only showing that battery is charging with a tick and OK to Disconnect. I open itunes but it doesn't find