Developer SQL and LDAP name resolution

We have a database service configured in LDAP (OID) to resolve one of the two sites, depending on whether it is running on the main server or standby.  The connection details are in this format:

(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST=prodserver.company.com) (PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST=drserver.company.com) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = db.company.com)))

When sqlplus or TOAD withdraws this LDAP connection string, they connect correctly, try the second server as expected.  When SQL Developer does this (connection defined as a type of LDAP connection) this works if the database is running in prodserver, but not drserver. During a recent exercise of DR failed to connect in SQL Developer with "ORA-12514: TNS listener doesn't know of service requested in connect descriptor."

In the Details pane of the connection of the properties of the connection, it seems that SQL Developer is the analysis on the first host of the connection string it receives from the LDAP and use it, never try the site of DR.  My solution is to use a TNS connection type and put all of the string above in the login field.  It's not ideal, because I'm ignoring LDAP, but it does not have this problem.

I'm interprets the behavior of SQL Develoepr correctly, and this sound, as does a bug (I'm under 3.2.20.09)?

Hi Brian,.

Recorded a bug:

Bug 17373236 - LDAP - does NOT REACH the FAILOVER/LOADBALANCED ADDRESS SECOND

You can work around this by using advanced url syntax:

You can use URLs advanced to use the syntax

http://download.Oracle.com/docs/CD/B28359_01/Java.111/b31224/URLs.htm#CHDBICFA

JDBC: thin: 7777/sales @ldap://ldap.acme.com, cn = OracleContext, dc = com

There is no thickness/OIC syntax as well (an old post - requires the installation of the additional oracle client)

JDBC:Oracle:OCI:username/password@CN=NAME_to_lookup,CN=OracleContext,DC=us,DC=Oracle,DC=com

-Turloch

Team SQLDeveloper

Tags: Database

Similar Questions

  • Developer SQL and KeepAlive

    Developer SQL 4.0.2.

    I have a bunch of developers complain that developer SQL disconnects them from the database.

    And it's too hard for them to right click and click on reconnect (sarcasm).

    DBs theses are in the cloud. If not happens if the DB is in bare metal.

    I am looking for and there seems to be an ad-, at any given time.

    The problem with him is that you need to configure at startup, so if you forget it, you get the same error.

    Also, when I upgraded SQL Developer he removed it.

    Is it possible to maintain this connection?

    Thank you

    Developer SQL isn't anyone disconnect from the database unless they ask to complete the connection.

    What you see are network timeouts, or database resource consumer group plan killing any idle sessions.

    Try to fix the problem at the source-, but you'll have to find out why connections die first.

  • Area Developer SQL and Windows XP profile

    I work in a secure environment where my laptop is quite tightly controlled. In particular, all users of portable computers are limited to a space of 20 MB Windows user profile. There is space in C:\Documents and Settings\ < username > change Data. This is to prevent people to build huge profiles that take an age to download and synchronize with the server connection.

    Developer SQL writes stuff in this directory (as does the Data Modeler and JDeveloper). In particular, windowinglayout.xml develops and is now 1 Mb in size. I'm running out of space in my profile, and it won't take long until I'm at my limit. The file size seems to mostly be down to the contents of the/LayoutInfo/clientLayoutData/global/view-data of the item which has become huge. Much of the content seems to relate to connections and files and I tried to remove some connections, but that does not make any difference to the size of the file.

    The contents of this file can be controlled? Is it possible to move these files somewhere else, so that they don't cause me a problem? Are there other possible solutions?

    Thank you in advance.
    Andrew

    As workaround solution, map the parameters of your profile folder. Add to \sqldeveloper\bin\sqldeveloper.conf:

    AddVMOption-Dide.user.dir=C:\sqldeveloper

    Have fun
    K.

  • Autocommit DDL: difference between SQL and SQL Developer * more?

    I asked this in the SQL forum (commit auto DDL: difference between developer SQL and command-line client?), but it has suggested it might be a problem in SQL Developer, so I thought I would ask here.

    I'm trying to understand what exactly happens when an error occurs when a transaction is committed because of a DDL statement. I noticed that with SQL Developer, if the DDL statement CREATE TABLE, the statement is executed, even if the DML statements which I entered before CREATE TABLE violates a deferred constraint, so that the transaction fails. In SQL * Plus, it's not the case: the table is not created. I have no automatic validation. I'm using Oracle 10 g XE.

    That's what happens in SQL * more:
    SQL> create table table1(a number);
    
    Table created.
    
    SQL> alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    
    Table altered.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> create table table2(b number);
    create table table2(b number)
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    
    
    SQL> select * from table2;
    select * from table2
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    If I put the same code in SQL Developer (versions 1.5.5 and 2.1.0.63), the table is created.
    This is my script:
    create table table1(a number);
    alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    insert into table1 values(1);
    commit;
    insert into table1 values(1);
    create table table2(b number);
    select * from table2;
    And this is the output of SQL Developer:
    create table succeeded.
     alter table table1 succeeded.
    1 rows inserted
    commited
    1 rows inserted
    
    Error starting at line 9 in command:
    create table table2(b number)
    Error report:
    SQL Error: ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    02091. 00000 -  "transaction rolled back"
    *Cause:    Also see error 2092. If the transaction is aborted at a remote
               site then you will only see 2091; if aborted at host then you will
               see 2092 and 2091.
    *Action:   Add rollback segment and retry the transaction.
    B                      
    ---------------------- 
    
    0 rows selected
    As you can see, the table is created in SQL Developer, but not in SQL * more.

    I wonder why it's different.

    Well Yes, it is a slightly different situation, because you issue 1 statement that executes internally 2 statements.
    But the problem is the same: the error handling. Where sqlplus rejects again (implicit) statements, sqldev goes ahead and runs them anyway. Personally, I'd say sqldev is more consistent and sqlplus is not, because run the following instructions (explicit).

    Kind regards
    K.

  • Developer SQL 4.1.2.20 Build HAND-20, 64: cannot drag-and - drop in editor files include "#" in the name or the path

    Developer SQL 4.1.2.20 Build HAND-20, 64: I am not able to drag-and - drop a file from Windows Explorer into the SQL Developer Editor window if the name of the file or the path includes sharp «#» Unfortunately, my main directory structure contains a ' # ' in one parent folder names and I use drag-and - drop all the time... it is, I used to. :-)

    I am running Windows 7 Enterprise 64-bit with Service Pack 1

    It wasn't a problem in the previous version of SQL Developer 4.1.1.19 build HAND - 19.59.

    Thanks to study deeply and providing a repeatable test. It is a very strange edge cases.  Particularly interesting is...

    This same issue exists for JDeveloper Studio Edition Version 12.2.1.0.0

    After my tests in SQL Developer 4.1.2 the question seems to be, that say you, trying to open any file (I tried sql, xml, and pkb types) by drag-and - drop from Explorer Windows to a publisher of target opened on a XML file with a symbol of hash somewhere in the specification of the file it is.

    First of all, as a solution, I thought that I could recommend that you drag-and - drop since our view > files browser rather than Windows Explorer.  Which avoids the question and even you will descend on the Start Page tab, any worksheet or another editor must be opened before hand. However, there is a completely different problem with that: try to close the last tab of the XML Editor open blocking the entirety of the product.

    As you do not declare it against a release of the Early Adopter, where our team connect the bug, the standard procedure is so that you can open a service request with the support of the Oracle. My research did not turn any latest bug as this connected against SQL Developer or JDeveloper.

    Edit: In fact, just double click instead of using drag-and - drop from view > files avoids questions, name incorrect both hang at the end.

  • Developer SQL 4.0 ai2 - cannot use OpenLDAP with LDAP connect option

    Hello


    I have OpenLDAP installation to work with my Oracle customers to use the TNS connection, instead of having scattered files tnsnames.ora strings about hundreds of servers.


    It works very well with 10g / 11g, customers complete and instantaneous, no problem.


    Now, I am trying configure SQL Developer 4.0 ai2 working with her, as well.


    When I try to do, I am able to select the 'LDAP' option in 'Connection Type', and the drop-down list "LDAP server" is correctly filled with my LDAP server of ldap.ora.


    However, when I select it, I get the following error:

    Status: Failed-[LDAP: error 32 - No Such Object code]


    Now, I did some research and I followed the slapd.log file, which shows me the following:

    Sep 18 02:43:35 slapd einstein [2779]: conn = ACCEPT 1034 fd = 16 = 192.168.125.1:63781 (IP = 0.0.0.0:389) IP address

    Sep 18 02:43:35 slapd einstein [2779]: conn = 1034 op = 0 BIND dn = "" method = 128 "

    Sep 18 02:43:35 slapd einstein [2779]: conn = 1034 op = 0 RESULT tag = 97 err = 0 text =

    "Sep 18 02:43:35 slapd einstein [2779]: conn = 1034 op = base SRCH = 1" "scope = 2 deref = 0"(objectClass=orclContext) = filter. "

    Sep 18 02:43:35 slapd einstein [2779]: conn = 1034 op = 1 tag = 101 err = 32 nentries SEARCH RESULTS = 0 text =

    Sep 18 02:43:35 slapd einstein [2779]: conn = 1034 op = 2 UNBIND

    Sep 18 02:43:35 slapd einstein [2779]: conn = 1034 fd = 16 closed

    That is a lot more detail, but reflects the corresponding error code (32 - No Such Object).

    After doing some tests with ldapsearch, I was able to reproduce this only developer SQL is done and get the same exact error.

    The ldapsearch command is:

    ldapsearch einstein Pei 389 - c - x d h "" b "" "(objectClass=orclContext)" "

    Research in the slapd.log file, I find a mistake similar to what is produced from SQL Developer.

    In addition, the query SQL Developer wants can be done successfully with the following ldapsearch:

    ldapsearch h einstein Pei 389 - c - x d ' "b"dc = proquest, dc = com""(objectClass=orclContext) ""

    Thus, it seems that the problem is the fact that the SQL Developer does not provide a research base.

    I'm not expert LDAP, and I really don't know where to turn next.

    Is there a SQL Developer option that allows me to put this basic research?  Is there a setting I'm missing on the LDAP server configuration?

    Thank you

    -Mark

    Well, that didn't take long.  I managed to find a solution to the problem.

    It boils down to the fact that the SQL Developer does not provide a research base, and my LDAP server had a defined default search base.

    When I edited slapd.conf (OpenLDAP configuration file) and add a parameter "defaultsearchbase" and bounced the LDAP, everything started working.

    I now have a working with OpenLDAP and Developer SQL configuration.

    I'll mark this discussion as closed.

    -Mark

  • Problem with the two EA DEVELOPER SQL DATA MODELING 3.0.0.665 and 3.1

    I created a model of very large data using SQL Developer data 3.0.0.665 and 3.1 EA maker. Its having a lot of check constraints. Whenever I am the design of the fence and the DOF and reopening export to import the DDL file failure to import completely check constraints. It is important to check constraints, but without any range of values inside. Its very frustrating because whenever you open import ddl, you must manually add again all the details of data check range constraint.

    OS: Windows XP.
    Check in the two EA Developer SQL Data Modeler 3.0.0.665 and 3.1

    -------------------------------------------
    Here are the contents of the .dmd file.
    -------------------------------------------
    * <? XML version = "1.0" encoding = "UTF - 8"? > *.
    * < OSDM_Design class = "oracle.dbtools.crest.model.design.Design" name = 'Admin_Panel' id = "9BE18B0A-6C67-2E5B-00DE-BD8312189ECB" version = "3.41" > * "
    * < createdBy > administrator < / createdBy > *.
    * < Createduserid > 2011-10-17 08:32:18 UTC < / Createduserid > *.
    * < Admin_Panel ownerDesignName > < / ownerDesignName > *.
    * < false capitalNames > < / capitalNames > *.
    * < designId > 9BE18B0A-6C67-2E5B-00DE-BD8312189ECB < / designId > *.
    * < / OSDM_Design > *.

    -------------------------------------------------------------------------------
    An example how the check constraints to get dirty.
    -------------------------------------------------------------------------------
    Initial check constraint is as below:
    ======================
    ALTER TABLE test_table
    ADD CONSTRAINT Active_Flag_ck
    CHECK (Active_Flag IN ('A', 'I'))
    *;*

    Below how it occurs once I have imported the ddl and re-export:
    ============================================
    ALTER TABLE test_table
    ADD CONSTRAINT Active_Flag_ck
    (CHECK)
    *;*

    I'm in trouble as I already in the middle of the my development using SQL Developer Data Modeler.

    Please help me soon.

    Jean

    Hi John,.

    Every time I'm fence design and export the ddl and reopening through the import of the DDL file

    Why are you doing this? Once the DDL file is imported and then save the drawing and open simply saved design, no need to generate the DDL and import it every time that you start Modeler data.
    On the list of values - forced as this CHECK (Active_Flag IN ('A', 'I')) are imported as constraint check plain and not as a list of values.
    There are the more specific elements import of check constraint - they are defined as type database constraint that you select during the import. Accordingly if you import your DOF as Oracle 10 g DDL, then you will get forced correct check in DDL generated for Oracle 10 g and Oracle 11 g. Constraint of evil will be generated for Oracle 9i. You can move the constraint for Oracle 9i (in the check constraint dialog box) or generic if it can be treated as such constraint.

    I logged for DOF bad bug.

    Philippe

  • IIS and sql server 2000/2005 if problems ip address and host name changed

    Windows Server 2003, IIS 6.0 + SQL SERVER 2000/2005

    Is there a problem if ip address and host name of the server is changed?

    for example

    IIS 6.0 may still work properly?

    SQL Server 2000/2005 can still start correctly?

    Thank you!

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

    I hope this helps.

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • Why Developer SQL displays arrows (relations) between parent and child tables in my entity relationship diagram?

    Hello


    Oracle version:                     Oracle Database 11 g Release 11.1.0.7.0 - 64 bit Production

    The version of SQL Developer: 4.0.2.15 - 15.21 build

    I have a question about drawing diagram, entity-relationship with SQL Developer & I would be grateful if you could kindly give me a helping hand.

    I would like to draw an entity-relationship diagram in order to better visualize the relationship between multiple tables. After a google search, I found the following interesting article indicating the procedure to be followed:

    http://www.Oracle.com/technetwork/issue-archive/2014/14-may/o34sqldev-2193423.html

    (What I need and I'm trying to produce is Figure 4 in the article above)

    I made exactly as stated in the article & apparently everything has worked well enough, in other words, I had several UML as rectangles showing columns of tables, their data types, primary and
    foreign key and the arrows indicating the link between each parent/child table.

    Later, I tried to do the same thing on a different oracle instance and a different database by using the same procedure. Yet, something strange happened this time. Developer SQL printed on-screen tables, once again,.
    inside the rectangles with types, keys,... but, there was no arrow showing the link between the tables, I just saw on the grid the selected tables but without any association/relationship shown (as a symbol of an arrow)
    between them.

    I repeated the procedure on another instance of development, with a few test tables that I created with primary and foreign keys just to make sure I had followed the procedure correctly. Once again

    the test was successful, but when I repeated the test on another instance, the same problem persisted, in other words, no arrow (relationship) between tables.

    Any idea?

    This could be due to a lack of privilege on the instance? If Yes, what should be granted in what about roles?

    Thanks in advance

    I think that what you see is that not all databases have foreign keys - applications hard-coding relationships vs let the database to handle this.

    Connect to this instance different oracle and browse the tables affected - have FK constraints defined on them?

  • Developer SQL is no longer let me look at the same table on 2 servers name

    I used to be able to look at the same table (such as; "ATS_Reminders") on my development box and my box of production at the same time. Now when I connect the two databases, if I try to open the table even on the second square, the first table closed so I can't watch side by side. Is there a way to fix this annoying problem?

    I am on Windows 7 running:

    Java (TM) Platform 1.6.0_11
    Oracle IDE 3.1.07.42
    Support versioning 3.1.07.42

    Hi bucketofsquid.

    You need to pin the 1st Editor. This can be done manually by clicking on the view button to freeze on the toolbar of the object viewer or automatically by setting auto freeze on in the preferences. Tools-> preferences-> database-> ObjectViewer-> automatically freeze object viewer Windows

    Brian Jeffries
    SQL development team

  • PL/SQL and Oracle SQL Developer

    I just downloaded the latest version of Oracle SQL Developer, because I heard that it of free and comes with a debugger.

    So I have it all set up, I am connected to my database, but I wanted to run a simple example:

    I chose to create a new procedure and a new tab open, I have pasted this code and under DBMS output, I clicked on the + to: set serveroutput on
    CREATE OR REPLACE PROCEDURE TEST1 As
    DECLARE
       mytext varchar2(100) := 'Hello world!' ;  
    BEGIN
       dbms_output.put_line(mytext) ;
       dbms_output.put_line(mytext) ;
    END TEST1;
    Yet, I get an error:

    Source does not have a target executable.

    So is - what's it to work only with database objects? Tables? I can't run a simple Hello World?

    Please help, thanks!

    Published by: Kodiak_Seattle on March 7, 2011 12:06

    SQL Developer forum is @ Developer SQL

  • Play with Oracle SQL developer configuration and its debug mode

    Greetings from a newbie, ask simple questions:

    1. I'm trying to run sql scripts using sql developer without actually connecting to the database, which makes a fake link in order to check if the syntax of the scripts is correct. Can I do this?



    2. Furthermore, I try to play with its CONF file, and I have a difficulty to understand the language that is using. What language is this? I can only guess "sqldeveloper - debug.conf ' is performed when I put ' IncludeConfFile sqldeveloper - debug.conf" in sqldeveloper.conf. But I don't really know how these configuration files. Could you give me some tips to learn this?



    Best regards

    Valerie

    No, Developer SQL does not parse the SQL statements, just them sends to the server and presents the results with you.

    As for the syntax of the configuration files, no idea. You might have more luck the {forum: id = 260} forum.

  • SQL for substr first name and family name

    Hi How can I subtr first name and family name

    Select first_name + lastname of employee

    for example if I have michael james I what to have JMichael

    Select your table instead of two. We do not have your tables and does not have the validation of samples, results, etc...

    Select upper (substr (one, 1, 1)) | initcap (substr (one, instr (1,' ') + 1)) result

    from (select job |) ' ' || Ename a

    WCP

    )

    RESULT
    Kill
    MBlake
    MClark
    MJones
    AScott
    AFord
    CSmith
    SAllen
    Ground vegetation
    SMartin
    STurner
    CAdams
    CJames
    CMiller

    Concerning

    Etbin

    Post edited by: Etbin

    example of the EMP

  • Connect SQL Developer, SQL * Plus can't

    I installed Oracle Database Development VM VM: VM VirtualBox for developers & lt; / title & gt; & lt; meta name = & quot; Title & quot; content = & quot; VM VirtualBox for developers & q...

    Added two adapters, one as a host-only, as NAT.

    We add a few entries tnsnames.ora for network database servers.

    Developer SQL inside the VM can connect to all three databases: XE, remote_db1 and remote_db2.

    SELECT * FROM Dual using a remote connection returns the data immediately.

    SQL * Plus inside the VM can connect to XE, but not to a remote server. It hangs just for awhile and finally back: ORA-12545: Connect failed because target host or object does not exist

    Outside of the virtual machine (on the host), Developer SQL (database connection Type) and SQL (sqlplus connection string) can connect to all three systems.

    What is going on?

    Brian Tkatch wrote:

    SQL * Plus inside the VM can connect to XE, but not to a remote server. It hangs just for awhile and finally back: ORA-12545: Connect failed because target host or object does not exist

    Sounds like the hostname resolution failed.

    A host name must be resolved to an IP address. If you use a host name in the TNS connection string, you need to make sure that it can be resolved to an IP address. With the help of the ping command is an easy way to determine if the host name is resolved.

    Some listeners (such as remote control and headphones RAC), accepts a connection client and in response redirect the client to a different hostname (and port). For example, a remote listener can serve 10 cases (each with a different service name). The client connects, asking servcice5. The listener redirects the customer to hostname ora-Server5 on port 1521. The customer now tries to connect to ora-Server5, to resolve the hostname to an IP address and then make the call to connect.

    If the listener can redirect the customer to a new host name - and the customer must be able to resolve the host name. The error that you get so don't always relates to the connection initial listener. It can also occur when the client driver follows the redirect to the listener and attempt a new connection to a new host.

Maybe you are looking for