RAC connection without connect string

Hi All,
We used to connect to single instance database using the following (without using connect string),
conn scott/[email protected]:1521/orcl
How to do the same or Is it possible , if it is a RAC database ?
Regards,
Anand.

We used to connect to single instance database using the following (without using connect string),
conn scott/[email protected]:1521/orclWhat do you consider to be a "connect string"?
How to do the same or Is it possible , if it is a RAC database ?conn scott/[email protected]:1521/orcl

Similar Messages

  • ORA-12546 When connecting without specifying sid in connect string

    I am currently having a difficult time connecting to an Oracle 9.2.0.4 database running on Red Hat Linux.
    I can successfully connect to this database with sqlplus as oracle whether a sid name is included in the connect string or not. I can also successfully connect to the instance through jdbc with jsp pages. However when I try to connect as root without specifying the sid I get an ORA-12546 TNS: Permission denied. I also receive this error when attempting to connect to the instance through php scripts. Note that root can connect through sqlplus with no problem as long as the sid is included in the connect string. Also note that the oracle user can connect either way.
    I turned on tracing and found that this error is occurring before it even gets to the listener as no log or trace entries are generated when the error occurs.
    Does anyone have any ideas?

    did you set the parameter TWO_TASK ?

  • Connection string for Oracle in instantclient11_1 Driver without TNS

    We have Oracle DB without tnsnames.ora.
    We are able to connect to the DB using sqlplus from a command line with the following connection string:
    username/Password@DomainAdress:Port/DataBaseName.DomainAdress
    SYS/****@computerName.Domain.net:1523/DataBaseName.computerName.Domain.net
    If we try to connect from the command line only with the DB name and not the FQDN – the connection fails.
    We would like to connect  using Driver={Oracle in instantclient11_1} We tried the following connection string:
    Driver={Oracle in instantclient11_1};Dbq= computerName.Domain.net:1523/ DataBaseName.computerName.Domain.net;Uid=SYS;Pwd=**** as sysdba
    We got the following Error:
    [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    What should be the right connection string for Oracle in instantclient11_1 Driver?

    Thanks for the confirmation.

  • Want to connect local SQLPlus without passing SID/connecting string.

    Hi
    On my network there are many databases and many several machine. On some database host machines when I pass user/password they connect locally but other wont unless I provide connecting string i.e. user/password@connection_string.
    How can I make my machines to connect locally if I pass just pass user/password as I want to install StatsPack, it change user within installation and log out as it only pass username/password not the connection string.
    Wishes
    Jawad

    try with TWO_TASK
    $ export TWO_TASK=lsc62.ex.zkb.ch            
    $ sqlplus scott/tiger
    SQL> select global_name from global_name;
    LSC62.EX.ZKB.CHMessage was edited by:
    Laurent Schneider
    well, this works only in Unix, so first, upgrade your plateform to Unix before setting this variable

  • Connection string question

    Application used to connect to 9i single instance DB using
    jdbc:oracle:thin:@host:1521:dbname
    Is there a way to connect to RAC without having to specify all the host names in the cluster like below? Want to be able to specify only one host name. The OS (linux) doesn't have a cluster name which could be used- at least not that I know of. It will require a lot of changes to ask user for multiple names if using RAC and hoping there is a simple way to connect without having to re-write the UI to get all the host names. I know if I use sqlplus directly, I can connect just by specifying the service name and not listing the host names. How does sqlplus get all the host names? By reading tnsnames.ora? We want to be able to get failover capabilities and hoping there is a way to specify a single host name (or cluster if there is such a name) in the connection string. Oracle client sw has been installed on the application server.
    String below requires all the host names:
    jdbc:oracle:thin:@(DESCRIPTION=
    (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=db7-vip)(PORT=1521))
    (ADDRESS=(PROTOCOL =TCP)(HOST=db6-vip)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=db5-vip)(PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=<service_name>)))
    .

    If you want to connect using failover characteristics, then the standard thin client should be replaced by the oci client, and instead of specifying the hostname:port:sid on the URL, you can use a tns entry. All connectivity, failover, and load balancing characteristics can be specified within the tns entry.
    ~ Madrid

  • Load balance not working right with jdbc connection string?

    For months we've used the following connection string to get Tomcat to open connections to our Oracle 10g RAC:
    jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST
    = db1vip) (PORT = 1521)) (ADDRESS = (PROTOCOL = TCP) (HOST = db2vip)
    (PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = orcl) (PREFER_LEAST_LOADED_NODE_ORCL = OFF) ) )
    Today, db2 became inaccessible during prime time, and the web app completely hung--when you tried to type in a username and password to log into the site, it would just hang indefinitely, and the Tomcat log files were complaining about being unable to open a connection to the database because of a network adapter error.
    I would have expected the JDBC driver Tomcat was using to just switch to the other database server, but none of our Tomcat machines did that, and I'm wondering why (they all just hung trying to connect to db2). Our guess is that the difference this time is not that Oracle was down on db2, but that db2 was down entirely. Maybe that connection string works only if the server is up when the database is down, and not when the server is unreachable (we couldn't SSH to the box, and when we tried to get to it locally using a remote access card, a lot of options were grayed out and we couldn't see a shell, so all we could do was reset the box).

    Hi,
    Please refer to the link below:
    SCOM 2012 – Monitoring Oracle Database OLE DB Management Pack Template
    http://stefanroth.net/2012/12/05/scom-2012-monitoring-oracle-database-ole-db-management-pack-template/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How do I create a connection string to sql server?

    Hi All,
       I am currently connecting to a SQL Server via ODBC DSN connection. I am wondering how do I create a connection string directly to a sql server without a DSN connection?
    Thank you in advance.

    If you have SQL Server or client installed in your machine you can directly connect to SQL server using native connection. When you create new report you can see the option create new connection, here you can see SQL Server. Expand it and enter the connection details where you will be directly connected to SQL Server without ODBC connection.
    Regards,
    Raghavendra

  • Can't change the connection string of SSIS package with derived columns?

    We upgraded SQL server 2008 to 2012, copied and converted all SSIS packages from Visual Studio 2008 to 2010.  When I opened a package in VS 2010 and tried to change the connection string, in the local connection managers, if the data source is another
    SSIS package B(.dtsx file) with derived columns, I can't change the connection string of package B. When I opened the file connection manager editor for package B and tried to locate a dtsx file in another location, saved the change, reopened the project.
    Package B still pointed to previous file.  Other packages without derived columns work fine. Any thoughts?

    We are using the package deployment model and refer to other packages in the same project. If
    we changed the path of package B (with derived columns) to "D:\Visual Studio 2010\xxxx", and refer it in package A, in the A's connection manager, the connection string of package B is still its previous location  "D:\Visual
    Studio 2008\xxxx". When we ran the package A in the SQL server agent, the data source is still
     "D:\Visual
    Studio 2008\xxxx", so how can I change it to "D:\Visual
    Studio 2010\xxxx"? Why has the package C (without derived columns) no such problem? thanks.

  • Best practice for RAC connections

    Got a question of what people consider best practice for setting up high-availability connection pools to a RAC cluster. Now that you can specify the fail-over logic right in the thin connection string it seems like there are three options.
    A) Use OCI connections and allow the fail-over logic to be maintained in the TNSNAMES.ORA file.
    B) Use simple thin connections with multi-pools and let WebLogic maintain the fail-over logic.
    C) Use simple thin connections with fail-over logic in the connection string.
    Thanks,
    Rodger...

    If you need XA, then follow the WebLogic documentation. If not, then
    you have much more freedom. The thin driver can be configured to
    use the tnsnames.ora file if that helps you. WebLogic much prefers the
    thin driver to the OCI-based one, which can kill a JVM with OCI bugs.
    If you do driver-level failover, each failed connection will cost a test
    and replace. If you use multipools, WLS can be configured to flush a
    whole pool when it finds a connection bad, and also make the failover
    at the pool level, right then, so application delay is minimized.
    Joe

  • Changing the server name on package connection string.

    I have a connection string in a package which is a local connection string and not in project connection manager and isn't parameterize as well. Now I need to change a server name of the connection property without using editor. Can I do that and how ?
    Moyz Khan

    I agree about using configuration for connection string but unfortunately this is an inherited project/packages . And my task it to make these run as currently I don't have luxury to modified it.
    So I was able to change most of the connection string with below update
    update[SSISDB].[internal].[execution_parameter_values]
    setparameter_value=replace(cast(parameter_valueasvarchar),'OldServer',NEwServer)
    update[SSISDB].[internal].[object_parameters]
    set[design_default_value]= 
    replace( 
    cast([design_default_value]asvarchar(1000)),'OldServer','NEwServer')
    Now the only one its complaining is the Project connection string . If I know where to look and update that I might be able to run these packages .
    Moyz Khan

  • Database connection string dynamic

    Hello everybody,
    My application should do some tests that user choses.
    For each test type I should save the database in a file with different name, something like : Report_YYYY_MM_DD_Test_x, without stopping the execution of the application.
    My problem is that i cannont rename the database after Teststand wrote in it. I must stop first the application and then I can rename it.
    I tried to build dynamic connection strings and to prepare the database before Teststand write it. But I saw that after the first acces, despite of new connection string, Testand write further in the database described in the first connection string. Also seems that the handle to database once established, will be released at the end of test. I could close the connection to the DB but i don't know if it is possible.
    for any ideea how to handle this situation i would be grateful

    Hi Harleen Kaur Chadha,
    I understand your requirement is access 5-6 database on same server using one JDB receiver channel. I think, it is possible. SAP Help [Link|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7c24a75cf83672e10000000a114a6b/frameset.htm ]. In receiver JDB channel select Message Protocol : u201CNative SQL Stringu201D. Then you have make sure that the payload coming to this JDBC receiver channel should look like this
    INSERT INTO DatabaseName : tableName 
    (column-name1, column-name2, column-name3)
    VALUES(u2018column-value1u2019, u2018column-value2u2019, u2018column-value3u2019)
    But, the mapping program you are using now, should generate the String (shown above). And SAP says this protocol is primarily for test purposes.
    FYI. If you select Message Protocol: "XML SQL Format", finally it would be converted to string (shown above) will be sent to database.
    Regards,
    Raghu_Vamsee

  • Hide connection string in url

    hi all
    when i open form from another one the connection string that contain
    user name & password appears in url
    this in applicaion server10g

    Hi Frank,
    It seems to me that his user's can login without nothing just type in the URL and that is it.
    I think the best way is just to force user's to type in userid & passwrod
    userid=/@ your oracle_sid
    Regards,
    Hamdy

  • Connection String with Crystal Report XI R2

    Hello,
    I am having an issue with Crystal Reports XI R2 and figured this would be a good place to start and post my question.
    I created a report in Crystal Reports XI and am now trying to pass the user id and password so that the user can just run the report. I attempted to use the Crystal Report connection string setup but receive an Microsoft ODBC error when trying to use that.
    My question is how can you pass a userid and password to crystal report XI so that when you open the report it runs without prompting the user? I do not have access to .NET. Can this be done using Crystal Reports XI only?
    Thanks in advance for your help
    Shaun

    Hi Shawn,
    Standalone CR can only do that if using a URL to open a report in BOE.
    For CR Designer itself the only option is to turn on Trusted Authentication in your Server, used Mixed mode and then import all of your users into SQL Server. Refer to MS's Help file on how to.
    Now when the user runs the reports CR will simply pass the local user info to SQL Server and no prompting will be required. We still respect DB security so if the user is not allowed to access the table then CR respects that.
    Thank you
    Don

  • Oracle 8i/9i connection string?

    We have two computers:
    Computer X:
    Windows 2000 Advanced Server
    Oracle 9i (9.2.0.1)
    DHCP IP address: 10.140.4.74
    Oracle SID: XXX
    Computer name: ZZZ
    Computer Y:
    Windows 2000 Professional
    Oracle 8i (8.1.7)
    IP address static: 10.140.2.4
    Oracle SID: YYY
    Computer name: YYY
    On client computer we install Oracle 6i Runtime and we make one connection string to Oracle 9i database. Connection String XXX TCP/IP 10.140.4.74 and SID XXX. (Others connection strings thru Oracle Net8 Easy config is deleted.)
    When we start SQL*Plus from client computer and If we enter scott/tiger@YYY Sql*plus will connect to Oracle 8i database?
    If we create form and in ON-LOGON trigger we put
    logon('scott/tiger@YYY'); Form will be connected to Oracle 8i database? But there is NO connection string YYY on client computer?
    Also if we connect thru SQL*Plus on Oracle 9i server to Oracle 9i database and then we try to reconnect to Oracle 8i database with "conn scott/tiger@YYY" it will reconnect to Oracle 8i database.
    How it is possible that we can connect to Oracle 8i database without defined connection string from the client computer or from Oracle 9i server?

    Please try reposting this to the OLEDB forum for best results....

  • Specify wallet location in the connect string

    Hi!
    Can anyone tell me is there any way how an application can use autologin wallet to connect to database without wallet location specified in sqlnet.ora file? For example can you specify a wallet location in the connect string like hostname and a port number?
    The reason I need this is to let our customers use Oracle autologin wallet to connect the application to DB. They would only need to specify the wallet location in the application's configuration file without editing the sqlnet.ora file.
    Thanks in advance for answers or alternative ideas.

    Hi,
    You can go through with the metalink ID
    The Impact of the Sqlnet Settings on Database Security (sqlnet.ora Security Parameters and Wallet Location) [ID 1240824.1]

Maybe you are looking for