Sql connection problem

Hai All
I am connecting via sqlplus in my database server. I already give the 'admin' password for 'sys' user at installation time. I connect in sql plus in different types.
SQL> conn / as sysdba
Connected.
I think this connection succeed because of operating system auhentication
SQL> conn sys/asdas as sysdba
Connected.
I give the wrong password here but it connected
I think this connection succeed because of operating system auhentication
SQL> conn sys/admin@db as sysdba
Connected.
This connection is ok
SQL> conn sys/asdas@db as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
I give the wrong password and exact connection string(db) here but it not connected
why it not connected?
Please clarify...

As mentioned earlier as well
SQL> conn / as sysdba
Connected.
I think this connection succeed because of operating system auhenticationYES this is OS authentication.
SQL> conn sys/asdas as sysdba
Connected.
I give the wrong password here but it connected
I think this connection succeed because of operating system auhenticationYES this is OS authentication.
SQL> conn sys/admin@db as sysdba
Connected.
This connection is okThis is the remote connection goes through the listener and you got connected bec's you have given a corect userid, password & conncection string.
SQL> conn sys/asdas@db as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
This is again a remote connection goes through the listener and you not getting connected bec's you have given a correct userid, WRONG password & correct conncection string.

Similar Messages

  • Not Converted : Free-hand SQL connection problem

    While converting a Free Hand SQL report from Desktop Intelligence to Web Intelligence report in BI XI 3.1, I am faced with the problem
    Not Converted : <REPNAME> - Free-hand SQL connection problem
    It is be noted that there are some other Free Hand SQL Reports, that go converted and published without any error. The subject report has two Data Providers; one referring to the Universe and other from the Free Hand SQL tagged to a DB Connection

    Ajay,
    Some more points that can be of consideration to you to help understand my problems.
    The conversion from DeskI to WebI is in the same version BI XI 3.1 and not to BI 4.0 in which Free Hand SQLs is not supported.
    I have converted one other Free Hand SQL Report with an error "Partially Converted : <REPNAME2> - Conditional or permanent Hide Header not available in Web Intelligence", for which I had to edit the report in InfoView and un-tick the "Show When Empty" property of the table ( http://www.forumtopics.com/busobj/viewtopic.php?t=197157&view=next&sid=e6840aafa2d1267c66dae164d1dbf9db ). I think the solution mentioned in this link does not meet the purpose as the table is not displayed in the design time after the above untick.
    Coming back to our issue, further probing into this aspect I stumbled upon this link meant for RCT for BI 4.0 version
    https://csdwportal.dhhs.state.nc.us/downloads/Business%20Objects%20XI%20R4.0%20Docs/SAP%20BusinessObjects%20Report%20Con…
    where in Section 3.4.9, there is a mention of the limitation in conversion as under
    "Conversion of reports with free-hand SQL or stored procedures is only possible in Connected mode, since the Report Conversion Tool needs to use the secured connection to the database that is saved in the CMS."
    I want to how the secured connection to the database in REPNAME2 is different from the subject report REPNAME1 as REPNAME2 got partially converted. The error reported for Subject report is "Free Hand SQL Connection Problem" and not conversion problem which can occur after the connection is established.
    I did check the security properties of various FHSQL connections in the CMC and all of them are identical in nature.
    Please advise

  • SQL Connect problem - migration from Oracle 7.3.4 to Oracle 8.0.6

    Our development environment has just been upgraded from HP10.20
    to HP11 and the database from Oracle 7.3.4.0 to Oracle 8.0.6.0.
    I am now having problems with one of the PRO*C programs. The old
    executable( compiled in the old enviroment HP10/Oracle734) is
    working fine in the new environment. But after I successfully re-
    compiled this program in the new environment, the new executable
    is not working and stops at the statement: 'EXEC SQL CONNECT:
    userid'. I have checked the userid and Oracle settings, they are
    correct. Right after the EXEC SQL, I've tried checking the
    status of connection, but it never gets there. The
    only change to the make file is using
    $(ORACLE8_HOME)/precomp/lib/env_precomp.mk instead of using
    $(ORACLE7_HOME)/precomp/env_precomp.mk
    Other PRO*C programs which are using exactly the same connecting
    statemment are working fine.
    Anyone have any ideas, I would appreciate them?
    Thanks,

    I am upgrading with precisely the same varaibles that you encountered
    and am receiving the same inability to do a simple CONNECT with
    Pro*C. Were you able to resolve this problem? If so, please reply
    with some guidance.
    Thank you.
    - Tad Franson
    [email protected]

  • SQL connectivity problem

    Hi to all,
    Can anybody resolve this eror i.e.
    Provider: named pipes Provider, error- 40 could not open the connection to the SQL Server.
    i have done a lot of search to resolve it but i could nt get a exact solution of this problem.Please it s humbly requested to you people please give me the solution of as soon as possible. Actually  i m doing my final project  in C#>NET with using SQL SERVER 2005 and have a very hsort time to complete the project but due to this problem i cannot go forward.Please reply me as soon as possible.
    I m waiting for your response
    Thanks in advance
    meerab

     System.Data.SqlClient.SqlEwception:An error has occurred while establishing
    a connection to the server.when connecting to SQL Server 2005,this failure
    may be causeed by the fact that under the default setting SQL serves dose not
    allow remote connection.(provider:Named Pipes Provider,40-could not open a
    connection SQL Server)
     at System.Data.SqlClient.SqlInternal Connection. OnError(SqlException exception, boolean breakConnection)
     at System.Data.sqlclient.TdsParser.TrowExceptionAndWarning(TdsstatObject stateObj)
     at System.Data.sqlclient.TdsParser.Connect(boolean& useFailoverPartner,boolean&failureDemandDone,String host,String
    failoverPartner,String protocol,SqlinternalConnectionTds connHandler,lnt64 timerExpire,boolean encrypt,boolean trustSearvCert,boolean
    integtedSecurity.SqlConnction owingObject,boolean aliasLookup)
     at System.Data.Sqlclient .SqlInternalConnectionTdat.openLogineEnlist(SqlConnection owingObject,SqlCooectionString connectionOption
    string newPassword,boolean redirectUserInstance)
     at System.Data.Sqlclient .SqlInternalConnectionTd.ctor(DbConnectionPoolIdentity identity,SqlConnectionString coonectionOption,object
    proviedInfo,StringnemPassword,Sqlconnection owingObject,boolean redirctedUserIntance)
     at System.Data.SqlconnectionFactory.creatConnectio(DbConnectionOption option ,ObjectpoolGroupProviedInfo,
    DPConnectionPool pool,Dbconnction owingConnection)
     at.System.Data.ProviderBase.DbConnectionFactory.CreatpooledConnecton(DbConnection owwingConnection,DBConnectionPool pool,
    DbConnectionOptions option
     at system.Data.ProviderBase.DbCnnectionPool.CreatObject(dpConnection owingObject)
     at system.Data.ProviderBase.DbCnnectionPool.UsercreatRequeest(DbConnection owingObject)
     at system.Data.ProviderBase.DbCnnectionPool.GetConnection(DbConnection owningobject)
    at system.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory 0
    at System.Data.SqlClient.SqlConnection.Open()
    at DAL.Class1.srh(string item_name)in C:\Documents and settings\star\Desktop\final_project\Solution\DAL\Class1.cs:line 80
    It s the complete error message. i Hope u ll understand it, now.
    I m waitng for ur response.............
    Thanks in advance.

  • Sql connecting problem form ip of local server

    hello sir 
    i have counfigured sql server 2008 r2
    when iconnect sql database engine using  ip\"instance name" it show me error  (ip address of local server)
    i got same error when i am connecting only ip without insatbce name "cannot connect to (ip)"
    but i can connect with .\"incatance name"  and  
    "pc name"\"instance name"
    i need to access from ip\"inctance name"
    any one have this type of solutions ?
    then plz help me
    i have also check this options
    http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx

    Hi,
    Try below links:
    http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ed7b78c0-7dcb-4be7-96fa-f85b74f0e413/sql-network-interfaces-error-26-error-locating-serverinstance-specified
    http://stackoverflow.com/questions/13754563/sql-network-interfaces-error-26-error-locating-server-instance-specified
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Java.sql.connection problems

    Hi, I hav got this problem:
    PRB 1
    I have got the JDBC connection established with the OracleDataSource instance on my java application
    I wonder if there is a way to check the connection if it is still alive. any hint? i tried connection.isClosed() but that doesn't help.
    PRB 2
    I am in this scenario:
    The connection is established during application start and something goes wrong say like the DB server goes offline in the middle of no where and I do a commit / rollback. I will get a SQLExeption called. But right after the db comes back online.. i tried to do a commit / rollback, the SQLExeption is still persist.
    Q1. Does this mean that when the exception is caught, my connection would no longer be valid and I need to restart the application?
    Q2. could i reinitialize the connection after the exception to avoid the restart?
    Thank you.

    Hi, I hav got this problem:
    PRB 1
    I have got the JDBC connection established with the
    OracleDataSource instance on my java application
    I wonder if there is a way to check the connection if
    it is still alive. any hint? i tried
    connection.isClosed() but that doesn't help.From Java APIs reg. isClosed():This method is guaranteed to return true only when it is called after the method Connection.close has been called.
    This method generally cannot be called to determine whether a connection to a database is valid or invalid. A typical client can determine that a connection is invalid by catching any exceptions that might be thrown when an operation is attempted.
    PRB 2
    I am in this scenario:
    The connection is established during application start
    and something goes wrong say like the DB server goes
    offline in the middle of no where and I do a commit /
    rollback. I will get a SQLExeption called. But right
    after the db comes back online.. i tried to do a
    commit / rollback, the SQLExeption is still persist.
    Q1. Does this mean that when the exception is caught,
    my connection would no longer be valid and I need to
    restart the application?
    Q2. could i reinitialize the connection after the
    exception to avoid the restart?Once your DB goes down, your connection is broken. You cannot do anything with that connection...like Rollback, commit etc. You need to re-establish the connection. You don't need to restart the application, but you might want to check if the connection is null. If it is, you might have to try a new connection. Probably, your application can quit trying for a connection after 'x' number of attempts.
    Kumar

  • Storing data in SQL-connection problem

    hello,
    I'm a new user with pdf and not much of a programmer. I've built a fillable form and added some buttons to email/print. I've set up a data connection with sql. The connection works, I can bind the fields.
    Now what i'm looking to do is when the form is opened, it's blank. After the form is completed by the user, they can hit a button to store the data into sql. I'm not interested in pulling data up from sql in the form, I strictly want to store the data once they hit a button.
    From reviewing these forums, I believe I need to open the connection, then store the data. I probably want to keep the connection open to allow the user to make edits prior to closing the file, then close the connection before closing the file.
    I've added the following code on the click of a button:
    connect = ADBC.newConnection("Intranet");
    statement = connect.newStatement();
    var query = 'INSERT INTO HR_DisciplinaryWarning ( employeename, warningtype, suspensiondays, EmployeePosition) values ("employeename", "warningtype", "suspensiondays", "EmployeePosition")';
    statement.execute(query);
    When I try this I get an error...ADBC is not defined.
    Any help is greatly appreciated!

    James,
    It sounds like an interesting project.
    I would suggest starting with creating the form as the user would use it to enter the initial data.
    Second, define a data connection to insert data into a particular database and add a button to the form which, when clicked, will execute the data connection and insert a new record into the database using the data supplied by the user. To make this even better, I would make the button initially invisible and would use a hidden text field to trigger its appearance: In the text field's "Form:Ready" event, if its value is not empty, set the button's presence to be visible. This way, when the user fills-in the form and submits it, they don't see the button but once the data is imported into the form by the Corp Rep, the button appears so that they can save the data to the database. To create the button's script, you'll need to read the article I just posted to my blog which demonstrates
    how to insert, update and delete records in a database. You'll also need to generate the "INSERT" SQL statement pulling-in the necessary values from the correct fields on the form.
    Third, to ensure that the hidden text field's value is set prior to the user submitting the form's data in the first step, you should use what I call the
    two button submit technique. When the user clicks the visible (regular) button, the Click event sets the value of the hidden text field to some value of your choice and then executes the invisible submit button's Click event, causing the form's data to be submitted with the user's supplied values and a value specified for the hidden text field.
    Fourth, when the Corp Rep receives the form's data in XML format via email, they would open the form and import the data into it. Since the hidden text field's "Form:Ready" event will be fired after data is imported, the "insert into database" button will appear (since the text field's value will be set to something other than empty from the imported data).
    Finally, the Corp Rep can make any necessary adjustments when then click the "insert" or "save to database" button to create the new record in the database.
    Stefan
    Adobe Systems
    More answers on
    FormBuilder.

  • Coldfusion mx sql connection problem

    Hi guys,
    I just installed CF MX, but with Apache server, and it works
    fine. But, I can't get it to work with my MySQL databases. I have
    phpMyAdmin, and it works fine, but, I get the following error when
    I want to make a new Datasource using MySQL
    Connection verification failed for data source: testing
    []java.sql.SQLException: Communication failure during
    handshake. Is there a server running on localhost:3306?
    The root cause was that: java.sql.SQLException: Communication
    failure during handshake. Is there a server running on
    localhost:3306?
    SQL is running on 3306, so...what's wrong? I'm kinda stuck.
    Thanks in advance!

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6ef0253
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • Local Network Connection Problem with SQL Server 2008 R2

    Hi,
    I have CRM application which uses SQL server 2008. Weird thing is that I have no problems connecting from client machines to the server when using a particular router (via LAN) and when I upgrade the firmware of the same router (A common open source firmware
    which is used by many also works perfect apart from mentioned problem) and restart the server, the connection cannot be established. I get Error 40. 
    When i downgrade the firmware and restart the server, the connection works again.
    Please note that I am absolutely not touching any configuration of the server. Also the CRM software allows remote connections from public IPs which this feature works fine with both downgraded and upgraded firmwares. 
    As for my understanding, the routers do not block ports in LAN connections. So how can I diagnose the reason for this connection problem?

    Hi Leony83,
    Please also help to check Windows Event Log information regarding this issue, so that we can do further investigation. In additin, here is the general steps to troubleshoot SQL Server Error 40 issue. Please see:
    SQL SERVER – Fix : Error : 40 – could not open a connection to SQL server – Fix Connection Problems of SQL Server:
    http://blog.sqlauthority.com/2008/08/24/sql-server-fix-error-40-could-not-open-a-connection-to-sql-server-fix-connection-problems-of-sql-server/
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • Problem with SQL connection and a Collection

    hi all,
    I have two problems with sql...
    1. how can I assign the values of a resultset to a collection?
    2. how can I close the sql connection, because when I close the statement and connection error shows me in the resultset
    thanks!

    Hello Pablo,
    RetrivingResults In Collection:
    1)   use getObject method, and assign it to collection.
              Collection c_obj=new ArrayList();
             while(rs.next())
                    c_obj.add(rs.getInt(Project_ID), rs.getString(Project_Name));
    Closing ResultSet
    2)               The close() methos of ResultSet closes the ResultSet object, like bellow
                    ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE2");
                    rs.close(); //Closes the result set

  • How to solve Oracle SQL Developer connection problem ?

    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?

    user8860348 wrote:
    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
    password: enter_your_correct_password given at the time of oracle installation
    role: select sysdba if you would connect as sysdba else select normal for users other than sys
    hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
    to find the hostname open terminal/command prompt in oracle installed machine
    type ---> hostname
    type ---->ping hostname
    you can find the ipaddress of the server
    port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
    SID: DB1
    try it
    Good Luck

  • Problem with SQL connection

    Is this the appropriate section to post SQL Database connection problems when using the Java language?
    thank you

    I like this term, too!
    It's so...classic...don't know..
    But well, thanks for the help! It helped me in building my own game site script!
    Best Regards,
    Luiz Soares. [About Me|http://luizjogos.com/cat/1/Jogos-de-Carros/p1.htm]
    Edited by: LuizJogos on Apr 22, 2009 10:00 PM

  • SQL Express problem client connection

    SQl Express problem, I can't connect another computer.
    I have sql express on win xp, and one client win 7 starter. The firewall is disable, I can ping the server computer (win xp pro). On Sql Configuration Manager I enable TCP/IP protocol and named pipes. ODBC local is fine, but remote don't connect.
    If anyone has an idea about this
    Felipe Script Center

    You hae to enable remote Connections as well, in Express Edition it's disabled by default, see
    Configure the remote access Server Configuration Option
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Connection problem SQL Data Tools for VS

    Hi
    Appologies I hace this question in SSIS forum- but think this is a better place to ask.
    I downloaded SSDT for VS in order to try some data mining on my developement edition of SS
    When I try to use the mining model viewer (setting up source, sourec view and mining structure all worked fine) - it fails and tells me that "OLE DB error: OLE DB or ODBC error: Login failed for user 'XXXXX\DAVID-PC2$'.; 28000.
    When settiing up the Impersanation Info- I used "Use the Service Account".
    To get past this bit I was advised by Olaf Helper to change to "Use Credentials of current User" but then it also fails as apparently when you set up SSDT the system creates user credentials that differ to my windows authincation in my SSMS- So
    the question is how and what do I change in SSDT so that my Windows Authincation becomes the same as "Use the service Account"- or make both talk to each other.
    Hope you can help
    Thks

    What I'm doing is based is SSDT.
    It appears to me that SSDT is configured for Analysis Services to be called Localhost
    Went into the Analysis service project- and changed target server from localhost to DM_DEV - when I go into Config Manager I can see that SQL Services Analysis Services (DM_DEV) is running- so is SQL Server Brouser.
    But when I'm in the project and try to run it I get
    The project could not be deployed to the 'DM_DEV' server because of the following connectivity problems :  A connection cannot be made. Ensure that the server is running.  To verify or update the name of the target server, right-click on the project
    in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server.
    Is there maybe some specific way of putting DM_DEV- e.g in barckets use " " etc? what am I missing here!!
    Thanks
    D

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

Maybe you are looking for

  • Dump: while opening the view

    Hi Team, I am getting dump, when i am trying to open the view either in display or change mode. Can someone tell me what would be the root cause. Thanks & Regards, Sankar Gelivi

  • Storing part of the file content into a variable.

    All, I have a log file containing lots of data now i want to extract all text between block below(only names) without the title/end pattern but only names, ++++START++++ SCOTT TIGER HENRY PAUL JARED TEXAS BILL G. OWENS ++++END++++ the names i want to

  • HT5868 ipad trust computer failure --  still not recognizing ipad (or iphone either)

    After upgrading itunes, intunes no longer recognizes ipad or iphone.  "Trust computer" comes up on both ipad and iphone , but still not recognized.

  • Help on Mapping Requirement

    Hi All, We have a requirement where  the target quantify field needs to be populated based on the below logic. i.e; Target structure is based how many times source carton segment exists.Now coming to target Qty field logic is based on order on Carton

  • Production version issue.

    Dear Guru's,      I have created two version in material master. also I have changed in "opl8"{ production version = Manual selection of production version} but still system is not asking me for production version at the time of creation of productio