I'm new to Oracle SQL and so I'm quite troubled with this problem. I have Oracle 11g, SQL Developer, sqlplus installed in my machine. I have created the following two connections in sqldeveloper:
Connection Name Username Password
dbms SYSTEM maharshi
test SYSTEM maharshi
The connection type is basic, role is default, Hostname, port and SID are all default values. i.e. localhost, 1521, xe respectively.
Now, when we select a specific database and execute statements in it's corresponding worksheet, the effect takes place w.r.t that particular connection only. i.e. if we create a table in the sql worksheet in sqldeveloper of dbms connection, then a table is shown in the dbms connection only and not in that of test connection.
But, if I login via SQLPlus as below:
sqlplus SYSTEM/maharshi
And thereafter I execute the table creation, which connection will it affect? If I execute the statement, which connection will get affected(dbms or test)? Suppose I want to create a table in the dbms connection only via sqlplus, how to do that?
I am not sure if I understood you correctly, so I apologize in advance.
It does not matter what is your Connection Name in SQL Developer. What matters is a Username. You work in the schema of a user that you are connected to. In your case both of your connections are from the user SYSTEM. So if you create a table in the dbms connection you will have access to this table from the test connection. The same goes for the sqlplus connection.
Bottom line: your table will be visible accross all your connections.
Related
I'm trying to connect to my Oracle database using SQL PLUS.
I've created a user and could work under its name through Sql Developer or Data Grip - connection there was successful.
In SQL PLUS I get this (wrong username/password):
I'm pretty sure I didn't make any mistakes in password because it's just 123456.
Here is my listener.ora:
Here is my tnsnames.ora:
Here is User info and details in Sql Developer (successful connection):
You're host it's "Maxim" based on the configs. But your db it's running on "localhost" based on your succesful connection by SQLDev.
Just use :
sqlplus 'Student/123456#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=locahost)(Port=1521))(CONNECT_DATA=(SID=orclpdb)))'
Take a look to :
http://www.rebellionrider.com/how-to-connect-with-oracle-database-using-sqlplus-utility/
https://www.youtube.com/watch?v=GS4udgR44Ls
Hope it helps, best!.
I have already installed sqldeveloper and i can launch SQLdeveloper client on my Linux Ubuntu 16.04 system.
The problem occurs during the first attempt of the new oracle connection from the client.
Error returned:
"I/O: The Network Adapter could not establish the connection"
I have already tryed several times to connect at the database but i still missing the username and password.
Is it possible to configure username and password for SYS/SYSTEM(or who else) user after installation?
Full stop.
You don't have a database.
Installing SQL Developer is just giving you a client you can use to work with an existing Oracle Database, which we often refer to as the 'server.'
SQL Developer is not a database.
So you need to get one.
Then you can use SQL Developer.
You have a few options. I talk about them in detail here.
SQL developer is just like the Key for Safe lock. And Database is the Safe.
So right now you have the key for Safe but doesn't have Safe.
Please get the safe first.
SQL Developer is not the Database. So Installing SQL developer will not give access to DB
Instead SQL Developer is the client side tool to retrieve the data or to do the modification on Database.
To get the database you need to download oracle DB from below link
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle12c-windows-3633015.html
I'm not an Oracle guy, but I find that I need to touch on some oracle resources to respond to a new report request. I'm working at an office where the connection to an oracle server uses LDAP and I can't get to the connection info. I do have an ODBC connection on my machine, so I can get into the database through MS Access. But I'd like to be able to connect with SQL Developer so I can do more useful profiling on the tables.
Is there any way to use my ODBC connection through Access to tease out Hostname, Port, and SID/Service name so I can connect through SQL Developer?
It seems I do not have permissions to the UTL_INADDR functions.
Since you have an ODBC connection defined already, you can open the ODBC Data Source Administrator on your computer (Goto the start menu and type ODBC in to search for it).
In the ODBC Data Source Administrator select the data source for the database in question (it may be on the User, System or File DSN tab) and click the Configure button.
From the Configuration screen you will be able to see the TNS Service Name for the connection.
The TNS Service Name should be all you'll need to supply to SQL Developer when creating the connection. Aside from your account credentials of course.
You can query SID and Hostname like this:
select instance_name, host_name from v$instance;
Afaik there is no way to query the port name from the database, see also this article on Ask TOM on this subject:
You cannot get the port -- the port is not necessarily known to the
database. The listener need not be running on the same machine with
the database, a single listener might be servicing many databases. A
database may have many listeners servicing it.
I need to connect to a remote Oracle database using SQL Developer. I tried to create a new connection and I would like to know what exactly is A SID? Is it a parameter I need to check in my Oracle database?
SID (System ID) is the name of the database you are connecting to. A server can host multiple databases, so you need to specify the name.
See also: http://www.orafaq.com/wiki/ORACLE_SID
You can get it like this, once you're connected, but given the situation, that might not be very helpful. :D
select sys_context('userenv', 'instance_name') from dual
SID = Instance name as defined at instance creation on the database server.
On the database server, check the tnsnames.ora file:
SERVICE_NAME=
or
SID=
Hi everyone i have problem with setting up connection between two oracle instances for replication. I can connect via sqlplus using string like `
SQL> connect root/12345#orcl1
but I can't create query:
CREATE DATABASE LINK remotedb
CONNECT TO root IDENTIFIED BY 12345
USING 'orcl1';
Also I can't set up it with Oracle database control. The error that I get is username or password of remote master isn't correct.
I don't suppose by any chance that the user "root" is a SYSDBA account on remote DB? If so, you cannot do this. Database links are not allowed to connect to SYSDBA accounts. The link will be created but you will get ORA-01017: invalid username/password.
I resolved the problem by enclosing password in double quotes