Different results when contacting 11g DB using various connection methods

Greetings:

First of all, thank you in advance for any help you can provide.

I'm looking for help to determine why certain methods of connection to a working DB production 11.2.0.3.0 64-bit, while others do not.  I tried 7 connection methods, some work, some give an ORA-12541: listener TNS:no error.  When connecting to a test instance, all 7 work very well.

I'm not a server admin, but the following information obtained from them: both servers are running Linux RedHat Enterprise Server 5.10 (Tikanga).  Both run Oracle 11 g Enterprise Edition 11.2.0.3.0 64 bit.  Each is on a different subnet.  Each has a different DNS suffix up to the last section of the suffix, which is the same on both.  I don't know if the firewall rules are different.  Production server is a physical box, test server is a virtual machine.

Results below are attempts to connect to the production server made from my Win7 64-bit workstation.  Once again, all attempts to test server are successful.

Method                                                                                                      Result

ODP.net 12.1.0.1.0 or 12.1.0.1.2 as an object in PowerShell 32 or 64 bit ORA-12541 .net

. UDL file by using the provider, Oracle OLE DB of the ODAC 64bits 11.x or ORA-12541 12.x

SqlPlus of Oracle Instant Client 11.x or ORA-12541 12.x

Toad with entry in file TNSNames.ora success

SQL Developer using the success TNSNames.ora file entry

ODBC System DSN using Oracle 11 g pilot success

TNSPing with entry in file TNSNames.ora success

So, what's different in the methods of connection or network protocols between these methods that fail and those who succeed?  Our Oracle DBA has tried to help me and claims that the file of the listener on the server is correctly configured.  It seems to be useful, so I don't think it's brushing me off.  I did not have access to check it myself, so must continue in the event that it is.  So I'm assuming that the TNS listener error is generated because my traffic does not reach the DB rather than the listener being misconfigured file.  However, if

My ultimate goal is to connect to prod using ODP.net in the PS script to make read-only SQL queries.  Works very well with the test, but of course, this data is not current.

Thanks for any help! -EW

EW, were all the client tries the same machine or different machines?  I hope your problem is either the entry in the file tnsnames.ora for connections of problem which can be different even from other tools on the machine even if multiple Oracle homes exists on the client.  Check the files tnsnames.ora entries.  If host names are referenced, verify that the client can recognize the hostname (DNS).  You may need to use an IP address instead.  Here's a more complete list of the possible causes of this problem.

- -

* Action:

-If you are using local naming (TNSNAMES. ORA file):

S ' ensure that "TNSNAMES" is cited as one of the values of the

NAMES. DIRECTORY_PATH parameter in the Oracle Net profile

(SQLNET. ORA)

-Check that a TNSNAMES file. ORA file exists and is in good

Directory and is accessible.

-Make sure that the name of the network used as the connect identifier service

It exists in the TNSNAMES file. ORA file.

-Make sure that there are no errors of syntax anywhere in the TNSNAMES file. ORA

file.  Search for unmatched parentheses or stray characters. Errors

in a TNSNAMES file. ORA file can make it unusable.

-If you use the directory naming:

-Check that "LDAP" appears as one of the values of the

NAMES. DIRETORY_PATH parameter in the Oracle Net profile

(SQLNET. ORA).

-Check that the LDAP directory server is in place and that it is

accessible.

-Check that the net service name or the database name used as the

connect identifier is configured in the directory.

-Check that the default context used is correct by

by specifying a full network service name or a unique display name of LDAP

as the login

-If you use easy connect naming:

-Check that "EZCONNECT" appears as one of the values of the

NAMES. DIRETORY_PATH parameter in the Oracle Net profile

(SQLNET. ORA).

-Make sure that the host name, port, and specified service

are correct.

-Try putting the identifier of connection between quotation marks.

//

- -

As mentioned that a firewall between the client and the database can cause problems.

- -

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • v$ session - request of exact same different results when it is run with the same user on the same database with the same client application on 2 different PC

    Hello

    Oracle 11.2.0.3

    We have a strange situation - using the pl/sql developer and a pc gui tool when query present at the session of $ v session INACTIVE for a sid given - also on sqlplus for INACTIVE same sid but on

    Another exact same request of pc shows as ACTIVE.

    What happens repeatedly with different sid.

    I thought session $ v must show the same SID as active or inactive desktop client as a database table.

    Someone at - he seen this before?

    Thank you

    When you ask anything about the database, your session will be activated as it does 'something' on the database. For example, when the user queries:

    select status from v$session where osuser = 'HIMSELF_USERNAME';
    

    It questions its own session which is 'something' on the database. So, just try it, run a query on the database using your own username as this, you will have the same results. There is no error on the data dictionary, please stop trying to think that it is a bug.

    Kind regards.

  • Same question different results when insert into one table.

    Hello

    I have an insert statement as below.

    insert into mid_table_name
    Select seq.nextval key1, Field1, Field2,...)
    Select Field1, Field2 b.test2 a.test1...
    tab1 tab2 a and b
    where a.key1 = b.key1
    and...
    ...
    )

    When I run the present, it's inserting less files that actually, the subquery returns.

    I noticed that

    (1) when I run the subquery, illustrated below, it returns more than 60 lines of k which is what I expect.
    (select Field1, Field2 b.test2 a.test1...
    tab1 tab2 a and b
    where a.key1 = b.key1
    and...
    ...
    )

    (2) However, when I run including the outer query, showb below, it returns only about 8 k; the same is get inserted into the table.

    Select seq.nextval key1, Field1, Field2,...)
    Select Field1, Field2 b.test2 a.test1...
    tab1 tab2 a and b
    where a.key1 = b.key1
    and...
    ...
    )


    Any help will be greatly appreciated.

    Thank you
    Prep

    You can try this one.

    Select seq.nextval, ff.*
    Select * from)
    Select Field1, Field2 b.test2 a.test1...
    tab1 tab2 a and b
    where a.key1 = b.key1
    and...
    ...
    )
    FF

  • "The eigenvalues and the vectors.vi" produce different results in BT 7.0 and 8.0

    I noticed that 'clean and vectors.vi values' product of different results when it is used in LV8.0 and LV7.0.

    The attached VI is saved in LV7.0.  The default values show the results by operating this VI in LV7.0.

    Using the same entries, try running this VI in 8.0 and you will see the results change.

    Someone has any ideas why this is happening?


  • Display different results with if statements

    Hello

    I'm doing a very simple logic but can't figure out how to do visually in LabView. Please take a look in the file. As you can see on the right, I have a group of 9 possibilities, each of them being true I want the COMPOUND NUMBER indicator to show a different result. I tried to use the structure of the case, but I could not the icon of the indicator in other sous-schemas. I also thought about putting the results in a table and choose the element whereby the possibilities.

    But I'm sure there is an easier way. Help, please.

    Thank you

    LD

    You put the indicator of terminal outside the structure of the case.  Then each case son its respective result in the tunnel leading out of the structure of the case to the indicator.

    (Alternative, but not recommended, use a local variable of the indicator in all other cases, if you use the terminal in one of the cases.)

  • Newbie Question: Should I use a connection for each method?

    It's my first project using SQL and Java, I have actually some learning on this subject but fun, but I'm still a beginner, so bear with me. When I set up a connection to the base, he goes into a try block:

    private void connectToDB(Connection con, String username, String password){         try{             DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());             con = DriverManager.getConnection("jdbc:oracle:oci8:@localhost:1521:xe", username, password);             System.out.println("Successfully connected to database\nDatabase: xe\nOn host: localhost\nPort: 1521\nAs user: " + username);         }         catch(SQLException e){             System.out.println("Database connection error:\n" + e.getMessage());             System.exit(1);         }     }

    But it does mean that when I want to use the connection to another method (to query the database), it throws a NullPointerException (I think because there is no guarantee that jerk has been implemented?)

    private void getAllJobs(Connection c){         try{             Statement s = c.createStatement();             String selectAllJobs = "select * from jobs";             ResultSet row = s.executeQuery(selectAllJobs);             while(row.next()){                 String name = row.getString("NAME");                 int jobNo = row.getInt("JOBNO");                 String urgent = row.getString("URGENCY");                 Date date = row.getDate("JOBDATE");                 System.out.println(name + jobNo + urgent + date);             }         }         catch(SQLException e){             System.out.println("Could not execute statement in method getAllJobs");             System.out.println(e.getMessage());         }         catch(NullPointerException e){             System.out.println("Could not create statement, connection is null");             System.out.println(e.getMessage());         }     }

    On this basis, I get the result:

    "Successfully connected to the database
    Database: xe
    On the host: localhost
    Port: 1521
    User: human resources
    Could not create statement, the connection is null
    NULL.

    I should create a new connection in each method I use, so that the sql statement is in the try the connection block create? What is the best way to handle this? Something different wrong with the code ignore for now, I'm looking for this answer so that I can continue the work.

    Thank you
    eskimo9

    OK - seems kind of, I went on a tangent and my brain took a vacation.

    Java is pass by value. If your code:

    private Connection con1;
    
    connectToDB(con1, "hr", "hr");
    
    private void connectToDB(Connection con, String username, String password){
    

    past the 'value' "con1" contains (which has the null value) to the method "connectoToDB". The method can manipulate the object, if it is not null, but it cannot change the setting points to the object. Such an assignment within the method is only local.

    You have shown that on the inside of the 'con' method has a value after the connection is created, but the original variable "con1" does not because the method cannot change what it points to.

    Change the "connectToDB" method to return an instance of 'Connection' and store the value returned in con1. Then the call to "getAllJobs (con1)" does not work correctly because the instance variable has been initialized. I'm sorry that I you good-for-nothing.

    There is an explanation that is funny, but for education, at this link: http://www.javaranch.com/campfire/StoryPassBy.jsp

    See the part that says:
    >
    A CAT = new Cat();
    doStuff (A);

    void doStuff(Cat B) {}

    B = new Cat(); does NOT affect the reference
    }

    To do this simply 'points' B to control a different object. A is always happy.

  • using the same search terms on ebay, getting different results on firefox exploer

    using the same words to search on ebay for internet explorer, I get results more when I use ebay on FireFox > is cutting some of the results when using Firefox

    It is always possible that eBay is to differentiate between browsers and gives different results, based on previous visits.
    You can try to delete cookies in two browsers to see if it has an impact.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
  • When you try to find the IP address of my computer, I see two different results with two different numbers. Which is accurate?

    original title: a different output for ping - an IP address

    I am trying to determine the name of the computer to an IP address

    When I open a command prompt in a computer (Windows XP connected to our domain) and type ping - a [IP address], I get a result

    When I open a command prompt in another computer (Windows Server 2008 connected to the WORKING group) and type ping - a [IP address], I get a different result

    And there are other times when ping - [IP address] will display the name of the computer on a computer (usually the Windows Server 2008), but not the other

    I tried to google

    1. why this happens

    2. what result is correct

    Please specify.

    The order of DNS in Windows name resolution is as follows:

    1. Name of the local host (file Hosts Local generally in c:\windows\system32\drivers\etc\hosts)
    2. Cache Client DNS resolution
    3. DNS server
    4. Cache of NetBIOS names
    5. WINS server
    6. NetBIOS broadcasts
    7. File LMHosts (same location as the HOSTS file)

    The reason you get different results could be because machines could be on different subnets (different results for broadcast), using a different DNS server machines or are configured for different WINS servers, or the names are already cached because of prior activity.

    HTH,
    JW

  • When I try to use the Snipping Tool I get a message saying that "the capture tool doesn't on your computer right now. Restart your computer and try again. If the problem persists, contact your system administer. "__What I can do to fix this? __Thanks

    When I try to use the Snipping Tool I get a message saying that "the capture tool doesn't on your computer right now. Restart your computer and try again. If the problem persists, contact your system administer. »
    What can I do to fix this?
    Thank you

    Hi Palaimo,

    See if one of the patches in the following link works for you.

    Snipping Tool fails

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Different results of the property 'configManager.snmpSystem' of HostSystem executing vCenter and when run directly from host

    We are seeing different results for the property of the HostSystem 'configManager. snmpSystem' from vCenter and when you access from host.

    I think that the result should be no different. Is this another known issue or am I missing something here?

    To confirm this behavior, we tried to show the property to the host through the Explorer managed objects (MOB) and also by the VMware Remote CLI scripts. Join the results of the CLI script that was running on our test systems.

    Best regards

    Damodar

    Greetings, I just wanted you guys to know this problem that you are experiencing is a known problem with VMware and our engineers groups are working on it.    Sorry for the inconvenience to you.

  • When you try to use the repair your computer from the advanced boot option option, it only shows a different user account and my username and password does not work

    Original title: when you try to use the repair your computer from the advanced boot option option

    When you try to use the repair your computer from the menu option options advanced startup, when it comes to the screen to select the user account it shows only a "another" user account and my username and password does not work, and the 'OTHER' this account is not on my list of user accounts... what should I do?

    Hi kennympeek,

    1. why you try to do the Startup Repair?

    You can try to perform the commissioning of repair using the audit and the disk Installation of Windows Vista.

    For estelle information links:

    What are the system recovery options in Windows Vista?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    Startup Repair: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/startup-repair-frequently-asked-questions

    Hope this information is useful.

  • Why did I get this result when I use split

    Hello guys

    I created a script that are looking for the active path,

    var myPath = (File($.fileName).parent.parent.parent.fullName);
    alert(myPath)
    
    

    I get "/ xxxxx/xxxx/xxxx/341542 '

    the only thing I'm interested in this information, it is the number

    so I added the code

    var myPath = (File($.fileName).parent.parent.parent.fullName).split("xxxx/xxxx/xxxx/");
    
    

    the problem is

    I get ', 341542'

    Why did I receive a comma before the number?

    There is no comma. in the path.

    Hello

    Using the split() method, you receive a table - not a string ==> myPath is an array of 2 elements.

    If you are alert a result - he is seen like this, couse of elements of the array are ',' delimited.

    To call a number part use myPath [1]

    Jarek

  • I have problems when you try to use a current OSX on my Mac eco system, causal link - specific needs on the three or four main applications.

    My systems include the MacMini, MB Air, Pro MB [all 2011] on OSX 10.8.5 Mountain Lion, with a MacMini extra [2011] with the help of El Capitan (for the purposes of the trial) as well as an iPadAir2 and an iPhone - both on iOS 9.

    I joined the eco system (from Windows) Mac to Snow Leopard and fortunately this used for all my needs. moving through the Mountain Lion and Lion (quickly), where I is a happy user!

    Failure to make progress in terms OSX is the result of...

    1. my extensive libraries of pictures were worked on - and are still being held in - iPhoto ' 09 (8.1.2) - which met my needs exactly - I have many albums which photos should be sorted manually - that is to say, not by Date, the former/Newest or title!  So, the current Photos app does not work as well for me on for my Scrapbook sort, although apparently it allows the movement only photo by mouse?
    2. I made 'heavy' use of iCal using many individual alert entries (!) of my choice as to the date, time, etc. and not very limited alert options offered by the newer versions (iOS-like) to iCal, where I use the alert custom-making every time! I avoid editing or for alerts in iOS 9 because o f the limited options available.
    3. I am a user passionate worksheet and delayed moving on numbers of Excel. I moved platforms for Cougar and live joyfully on numbers now with stored copies online as well.

    Tempting to work in El Capitan, I am "forced" to spend my worksheets to the most recent numbers app when I come to save and cannot then use the 'improved' version recorded on my systems of Mountain Lion (where I still pure copies!) -similar events occur when you use Pages; the lack of recoil connectivity is a major drawback for me that I apparently must keep OSX Mountain Lion to use my key apps 'base' to meet my needs!

    Are there workarounds 'smart' (or applications) that will overcome all (or part) of these "disadvantages", allowing me to good progress and update on El Capitan OSX (and Sierra at the right time)?

    I have to start using a different calendar system to have the usable alert options (which deviates from the eco system) systems on the scale?

    Should I go back to using Windows Excel (or Online) to my spreadsheet to have facilitated cross-OSX usage?

    Thank you.

    On applications of numbers and Pages, there is a real problem if you need backward compatibility - alas, I don't have a solution for you.

    But I do not understand what limits you talk in calendar alerts. I can add events and alerts for them in El Capitan (and now Sierra) using the same methods that I used in previous versions. I can receive messages, sounds or emails in any number and both custom of my choice. Can you serious? Maybe post screenshots of before and after? I'm not available for the comparison of older systems. There are indeed limits if do you the same thing in iOS, but AFAICT not on the mac - and, especially, the alerts personalized on the mac are correctly transferred to the iOS device that I use (an iPhone), to my first mac.

  • Why Express PSD gives a different result of amplitude as FFT PSD?

    Hello

    When I use the express VI of spectral measures to trace the power spectral density, I get a different result than when using the FFT PSD VI. The data are the same but the amplitudes are different in the PSD plot. Everyone comes through this?

    Thank you

    Donners,

    The PSD2 and graphic PSD2 are different because you are breastfeeding two extra points in the tables (t0, df). When graphic entry of data in the tables, they interpret not automatically information of t0 and df.  Actually they do not yet receive this information.  You must program the scales with nodes of property.  If you simply draw the order of magnitude, the spectra are very similar.

    ^ ^ ^ This confuses only the chart!

    The spectral forms differ slightly as the power spectrum of FFT and PSD.vi uses a default Hanning window.

    Lynn

  • Flatten channel gives different results on a RT system compared to a Windows system?

    When I flatten a structure moderately complex to a string in LabVIEW Windows, I get a slightly different result than when I do the same thing (interactive) Looking RT. LabVIEW to hexadecimal display produced channels, towards the tail end of the strings that I see:

    Windows: A 999, 0000. FB99 A 9999 9999 9999 9, 00
    RT: 9999 A000... FB99 9999 9999 99A 0 0000

    Shouldn't get the same value of the two systems?

    Your problem is the use of the extended data type.  I don't have a cRIO to do more thorough testing, but the only items that do not match are the two elements of smoothing.  The two values differ by about - 5.54976E - 18 (that is to say, not much - less, in fact, the value of epsilon machine).  If you use the context-sensitive help and hover on an EXT thread, you'll see a note indicating the precision varies by platform, so it must be provided.  Also documented A in aid, under the heading "digital, data types table.  Is there a reason why a double precision is not sufficient?

Maybe you are looking for