Ora 12154 error when trying to add a database to VS Server Explorer

Hi Everyone,
I get the Ora 12154 error when trying to add a database to VS Server Explorer.
How do I get around this problem.
The database service is running and I can connect to the database with pl/sql.
I can also tnsping the database and that is also ok.
Looks like a problem with the odp.net software.
I am running the 32 bit Oracle 11g on a Windows7 Home Premium 64 bit PC.
I am new to this stuff so please help me step by step.
Thanks.
Emad

Hi J. B.
I have a question related to this. After you told me about the //host:1521/database alias I tried it in a VB 2008 program and it worked and returned data. At least I know that it can be used in a VB program without issues. I just now need to be able to add a connection with the Server Explorer.
Anyway here is the VB coding I used. I'm new to this and still learning:
Imports Oracle.DataAccess.Client ' Visual Basic ODP.NET Oracle managed provider
Public Class Form1
' String to connect to the database.
Dim strConnectionString As String = _
"Data Source=//emad-pc:1521/emadeva;User ID=scott;Password=tiger;" '
' Associate the connection string with a connection object.
Dim objOracleConnection As New OracleConnection(strConnectionString)
' SQL query for returning data rows.
Dim strSqlQuery As String = _
"Select dname, deptno " & _
"From dept " & _
"Where deptno = 10" '
' Command object to make this query work.
Dim objOracleCommand As New OracleCommand(strSqlQuery, objOracleConnection)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Identify what type of command is being used.
objOracleCommand.CommandType = CommandType.Text
Try
objOracleConnection.Open()
' Set up a Data Reader and load it with data.
Dim objOracleDataReader As OracleDataReader = _
objOracleCommand.ExecuteReader()
objOracleDataReader.Read()
' Convert the department number to a string.
lblDepartmentNumberFromOracle.Text = _
CStr(objOracleDataReader.Item("deptno"))
Catch ex As Exception
MessageBox.Show(ex.Message, "Error")
End Try
End Sub
End Class
I still want to thank you for the help you are providing.
Truly,
Emad

Similar Messages

  • ORA-20600 error while trying to add RAC database

    I'm receiving the following error while trying to add the RAC database in grid control. Any idea?.
    ORA-20600: The specified target is in the process of being deleted
    This database doesn't exists in targets. But, I'm still unable to add.

    Check the metalink Note: Unable To Add Rac Database To Grid Control Getting Error Ora-20600 [ID 1218797.1]
    You need to wait for a while and check the status.

  • ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010

    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?

    user10832104 wrote:
    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
    If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
    But after quickly googling ..
    In excel ...
    "Data" tab
    "from other sources"
    "from data connection wizard"
    select ODBC DSN
    On data link properties, select the "connection" tab
    select "Use Data Source Name" and hit the drop-down
    select a dsn that you had previously set up to point to the oracle database.
    Anyway, that looks like how it is supposed to be done.  I'm getting a dll initialization error.  Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully.  But then Windows never graceffully handles anything that isn't MicroSoft.   To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates.  You never know what you're going to get."
    In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there.  That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects.  Are you referencing an ODBC DSN?  If so, have you tested that apart from Excel?

  • Gives ORA-12154 error, when trying to connect as sysdba

    Hi Gurus,
    I am new to oracle. I have successfully install Oracle Database 10gR2 on RHEL4.
    Everyghing is working fine.
    I found that loging through sqlplus not success as sysdba.(ORA-12154) But as a normal user I can loging through sqlplus. Anyway I can loging as sysdba through emctl console.
    Can anyone help on this pls. Urgent.......................

    You're welcome.
    I dont know how this happened Probably your old password had some special characters within it, that's why I wanted to know if connecting without password did work. Then I would have advised you to change your password (avoiding special characters...).

  • Error when trying to add printer on USB Print Server

    I'm attempting to connect to a Canon MP530 printer via a Netcomm NP3680 USB Print Server.
    When attempting to add the printer via the Print & Scan process, the USB port is seen by the MacBook and listed - ie: mini_me-3-usb2, and the driver is selected automatically without any problem after gathering printer information, however the macbook is unable to connect and returns the error: "An error occurred while trying to add the selected printer."
    If a manual configuration is attempted the message returned is: "An error occurred while trying to add the selected printer. Unable to communicate with the printer at this time." Further manual config via the IP address will allow the printer to be entered, however the printer is non-responsive.
    I have setup this printer via the same Print Server on the same Macbook prior to this and it setup and worked correctly - the same setup is working correctly on my wife's macbook. However I had to remove the setup on my Macbook and can't get the printer functioning again on this particular Macbook, or my son's.
    The direct connection setup via USB directly works without any problem at all.
    I'm currently running OSX 10.8.1, however my son is running 10.7.x and has the same problem. My wife's macbook is also running 10.7.x and is working fine.
    Can anyone throw any light on this issue - it is truely frustrating, especially when I know it has worked in the past.
    thanks very much in advance
    GDT

    After 55 views and 0 replies, and a number of calls to Applecare (without success) , I decided to once again troubleshoot the problem.
    Fixed!
    Bearing in mind, I had no other printers already set up in the Print and Scan window....
    I removed the following items from the /library/preferences directory: 
    "com.apple.print.makequeues.plist",
    "jp.co.canon.ij.print.filter.raster2canonij.plist",
    "jp.co.canon.ij.print.utility.command2canonij.plist",
    "org.cups.printers.plist"
    I also removed all items from the /library/printers directory (including Canon, PPDs, plist files and icons)
    Then I retried to install the printer..... (holidng my breath) and the Console showed:
    Repairing access permissions of "/Library/Printers/InstalledPrinters.plist"
    All is fine now

  • Error when trying to add and edit users in Server 4.0

    I am having a strange problem with my OS X Server 4.0 Users section. I try to add a local network user but it automatically adds as a local user. Also, when I try to edit the User account (add to a group), I get the error, "The operation could not be completed. com.apple.Server.Accounts Error 2." Can anyone help and tell me what this means? As well, I can not edit any of my local network users, as I get greyed out buttons everywhere. I am definitely logged in as an administrator and I'm pretty sure my DNS records are accurate.
    Edit- Fixed! Turns out I had 2 users using the same Full Name, one as a local user (admin) and one that is a local network user. I ended up using the local network user one!
    Message was edited by: xoxorockoutloud123

    Sorry I don't have an answer, but I have the same problem.
    I thought it might be because I'm connected to an Active Directory, but the problem seems more fundamental.

  • I am getting an error when trying to add a caption.

    I get the following error when trying to add a caption to a photo.   "An error occurred while reading files or writing files to disc.  The disc may be full or there may be a problem with the source media."    I am running Windows 7 Pro.   The files are located on my c:.   The drive has 274 GB Free so space isn't an issue.   I have tried deleting a file and readding it to the same catalog and still the same problem.   I have copied the file to the desktop and cataloged it from there and the error went away.  
    If i check on the folder attibutes it is set to read-only but the desktop folder is as well.   If i try to remove the read only it only resets itelf to read only again.   Once i get the error another file shows up with the image name plus -edTM P-1 and it has the caption on it.  

    I was able to get it to work.  The root folder which held the pictures had a lock on it through windows 7.   Even though the drive was shared, I still had to go into the folder properties and share it with everyone.   Once i got the lock off and rebooted I was able to add captions again.

  • Fatal error when trying to add derived table

    Hello,
    I'm new at desiging a universe. I get the following a fatal error when trying to add a derived table to my universe:
    1 processor x Family 15 Model 0 Stepping 0
    Windows 2000 Workstation  v5.1 build 2600 (S)
    Physical Total/Avail: 2.097.151 Kb / 2.004.940 Kb
    Temp directory C:\DOCUME1\xxxxxx\LOCALS1\Temp\ (1 Kb available)
    'Unknown' video card
       1280 x 768 in true color
    (doesn't make sense to me)
    I use an ODBC connection that connects to a MySQL database. When I test the connection it's fine.
    I am trying to add a derived table because it seems that my universe cannot produce LEFT OUTER JOINS.  I read somewhere that I should set my ansi92 parameter to YES instead of NO. But, everytime I re-open my universe, it sets itself automatically to NO again.
    My utlimate goal is :
    For example, list ALL the people, left join my table to their websites, but return ALL the people, even if they don't have a website.
    I dont' understand, my join should be simple enough.
    Anybody knows what could be causing all these restrictions ?
    Thanks for you help.
    Edited by: Sose Canadian on Feb 9, 2009 9:40 PM

    Hi Sose,
    In BusinessObjects (Universe) Designer, the outer join option in a join is not available and is dimmed when using a Generic ODBC connection.
    Try Following Solutions:
    Solution : 1
    When using an ODBC connection the odbc.prm must be modified on the machine where BusinessObjects Designer is used.
    Use the following steps to modify odbc.prm:
    1. Locate odbc.prm in the following folder:
    \Business Objects\Business Objects Enterprise 11\win32_x86\dataAccess\Connection Server\odbc
    2. Open odbc.prm in a text editor and modify the parameter 'EXT_JOIN' so its value is 'YES' instead of 'NO'.The outer join option is now available in BusinessObjects Designer.
    If the outer join option is still not available after following the steps above. open odbc.prm in a text editor and modify the parameter OUTERJOINS_GENERATION. Change its value from 'NO' to either 'ANSI92' or 'ODBC'.
    Solution : 2
    This can occur when user is using a non-database specific middleware such as generic ODBC. Generic ODBC allows creating a successful connection and universe, however will not allow the Outer Join option.
    The syntax for outer joins is specific to each database and the Generic ODBC driver only lets you access standard common features of all ODBC data sources.
    Ensure that you are using the database specific middleware to create the connection.
    I Hope this Helpsu2026.
    Thanksu2026.
    Pratik

  • Get the following error when trying to add a new user - Error of type eDSSchemaError (-14142) on line 1235 of /SourceCache/WorkgroupManager/WorkgroupManager-421/PMMUGMainView.mm

    Get the following error when trying to add a new user on Mac OS Server 10.5 - Error of type eDSSchemaError (-14142) on line 1235 of /SourceCache/WorkgroupManager/WorkgroupManager-421/PMMUGMainView.mm

    How come Leopard let me use the WGM in standard mode?
    While SA complains that it won't work in Standard Configuration, WGM does not. There is some fault in the logic of this for which I don't have an explanation.
    If I want to get control on Dock, selection of Home folder, config of Proxy... which I think are basic things, do I really need the advanced mode?
    If you wish to have complete control of all client settings, yes. There really is no disadvantage of using an Advanced configuration other than the learning curve.
    So if I switch to advanced mode, there is good chance I won't get this error message anymore, right?
    Yes.

  • FRM-40735 Error when trying to add an employee as key member for a project

    FRM-40735: ON Insert trigger raised unhandled exception ORA-06502 in PAXPREPR when trying to add an employee as key member for a project
    Tried generating FND log messages to see if it shows any error messages but it didn't show any specific error.

    Error ORA-06502 says PL/SQL: numeric or value error.
    The Error could be in the data already exist in the system for key members. If this Project was created using APIs, there are possibilities that some other character( i.e. next line chracter ) got entered in the column value which Form "PAXPREPR" is not able to fetch or update.
    You can query the key member data from back-end to check if any data corruption is there. you may require data-fix to correct that.
    AB

  • Error When Trying To Add Web Clipping

    Receiving the following error in the Apache error log when trying to add a webClipping portlet:
    [Sun Feb  1 08:17:25 2004] [info] [client 141.146.192.68] MOD_OC4J_0007: Oc4j process unique id:
    C_130.35.162.13.11a3ac.f52e368ff8.-8000#titsto_iasmt.auohsitst03.oracleoutsourcing.com#391727#OC4J_Portal#OC4J_Portal#default_island parsed from cookie of session request: /portalTools/webClipping/htdocs/wcstudio/jsp/toolbar.jsp does not match to oc4j instance with destination name: OC4J_Portal. Ignore this cookie.
    The error "WCS-102" shows up on the web - page while trying to add a webClipping portet.
    We have installed JPDK 9.0.2.6.2 over 9.0.2.6.1 and redeployed jpdk and portalTools. Note that the middle tier is a two node RAC.

    Sorry to resurrect this old topic - but was a solution found for this? I'm having the same problem.

  • Getting error when trying to add authorzation in ERM (AC 5.3_SP,)

    Hi Experts,
    I have created a role in ERM and successfully saved it, when trying to add authorization by selecting the functional area->selected the functional are(procurement dept.) -> next i clicked on the authorization data-> aded one row ->when searching for the function id from the description field, it's searching for some time and after that, getting the follwing error .
    "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://xiserver.ep.in:50000/VirsaCCFunction5_0Service/Config1?wsdl&style=document"
    Please do help.
    Best Reagrds,
    Gurugobinda
    Edited by: gurugobinda harichandan parida on Sep 10, 2009 6:29 PM

    Hi Alpesh and Zaher,
    Thanks a lot for all your help and support.
    After applying the note 1279722 my error got resolved, but after that when I am going to the next step to maintain PFCG it is giving me the error as: "Unhandled error; Function template PRGN_CHECK_ROLE_EXISTScould not be retrieved from CPD".
    Please do suggest.
    Regards,
    Gurugobinda

  • Error when trying to add a project to Subversion source control

    When trying to add a project to source control from within the OPM 10 studio (File - Source Control - Add Project to Source Control), the following error occurs:
    "There was a problem accessing the source control system, probably due to network or contention issues. A retry is recommended."
    This has been tried with Subversion versions 1.6.2, 1.6.5 and 1.6.6, with local repositories and repositories on a Apache webserver.
    Once the project has been added to a repository, by using TortoiseSVN for example, working with source control is no problem.
    Does anyone have a clue what the problem (and a solution) might be?
    Thanks,
    Theo.

    Hi,
    Davin mentioned:
    This appears to be an issue with the source control integration. We are looking into it.I am using OPM 10.0.1.14
    The OPM help on collaborating mentions:
    Open a rulebase project from source control
    To open an existing Oracle Policy Modeling project from a source control repository:
    In Oracle Policy Modeling, select File | Source Control | Open Existing Project from Source Control. When I open the File menu I do not see the "Source Control" at all.
    Is this caused by an installation error or part of the "issue with the source control integration" ?
    Please let me know if I'm the only one experiencing this problem ....
    Thankx,
    Paul

  • Error when trying to add transitions and titles

    I'm getting an error message on iMovie HD 5 when trying to add a title or transition that says, "error in system operation (-4960)" can anyone help me out here?
    thanks!

    Hi minD:
    This error usually indicates an OS problem, rather than iMovie problem.
    Prevent Mac Disasters
    Eight Simple Steps You Can Take Now to Keep Your Mac from Falling Apart
    http://www.macworld.com/2005/01/features/preventmacdisasters/index.php
    (Article is in 3 parts, don't miss parts 2 and 3)
    Sue
    (Thanks to Lennart Thelander for the copy & paste)

  • ORA-01552 Error when trying to import data

    I get the following error when trying to import data into my database. My version is as follows:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for Solaris: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    and I get the following error:
    ORA-01552: cannot use system rollback segment for non-system tablespace
    Any help would be appreciated.
    Also when I upgraded my database I received the following error message but continued without fixing:
    Warnings Ignored: Your database is using US7ASCII as the NCHAR type. In Oracle9i, the NCHAR datatypes (NCHAR, NVARCHAR2, and NCLOB) are limited to the Unicode character set encoding (UTF8 AND AL16UTF16) only. Refer to the Oracle 9i Database Upgrade Guide to change NCHAR columns in user tables to one of the supported types.
    Can I fix this via an sql statement or what?

    Hi, i think that the problem is around the rollback segments.The solution is bring other rollback segments ONLINE state, if not exist others rollbackup,then you need create the other rollback segments and bring online state.
    If you need more information, you will must see the next DOC-ID on Metalink site,
    Note:121971.1
    Luck.
    Have a good day.
    Regards.

Maybe you are looking for

  • CS4 Products shutting down when trying to print

    Has anyone had a problem with CS4 shutting down when trying to print

  • Secondary Index for the table MSEG

    Hi folks,          One of my report is comparetively very slow when it is executed in the production server. when i chked, a query related to the MSEG table is taking more time to execute. I want to create a secondary index for that table. Could any

  • IPhoto - data won't read into application

    As an addendum to my earlier post: I just found that all my photos still exist in pictures>iPhoto Library on my HD, but for some reason they are not loading in iPhoto when I open the iPhoto app. I'm sure there is a way I can manually direct iPhoto to

  • HELP!! Mac OS X 10.7 Lion Recovery problem

    Please help me to solve the problem..... I recent encountered several problems with my MBP (Early 2011) so I decided to have a go into reinstalling OS X Lion. My computer had been formatted into 2 partitions inside the internal SSD. I boot into the R

  • Home page different than start page

    I recently switched back from Chrome to Firefox (or I'm trying at least). The biggest thing from Chrome that I can't set up correctly is my start pages. In Chrome I can set my start pages to three separate tabs and my homepage to only one of those ta