How to see tables created on SQL developer with SQL PLUS? - oracle

I created a tablespace on Oracle SQL Developer and trying to access tables data with SQL PLUS console. But when I insert a row with SQL Developer and want to see if the result is display on the SQL PLUS console, SQL PLUS doesn't show me any results. Seems like there's no connection between SQL PLUS and SQL Developer.
Is anyone has an idea ?

of course you are committing the transactions, then querying them from SQL*Plus; otherwise there is no way to see the data from another session.
commit;

SQLDeveloper and SQL*Plus are just two front end tools that allow to access the database. Let's start by making sure, that:
* You connected with the same database
* You are connected as the same user
* You did commit

You need to commit from JDeveloper and not be in a transaction in sqlplus.

Related

Oracle Privilege - User can create table but cannot write rows

A user has been configured on Oracle. Via this user, I can create an ODBC connection and an OCI connection, and these both test fine in Win10. Using Alteryx with the ODBC and OCI connection, we try to write data to a new table.
The table is created and appears in PL/SQL with the expected column names. However, the rows are never written and the connection just hangs at this point.
What could be wrong? I am not an Oracle Admin
Based on comments you were expecting oracle to commit without executing "commit" command explicitly. It's not enabled by default in oracle so you have to turn it on.
It's not possible to turn this on for the database, but on client apps only.
E.g. "set autocommit on" command in SQL Plus.
So you need to check docs for the client application you're connected with (presumably Alteryx is the one). It might have such a feature.

How to remove database name from the user/schema name in oracle after migration from SQL Server to Oracle?

We are migrating our database from SQL Server to Oracle using the SQL developer tool. While migration, the schema name in SQL Server is "schmdw". This schema is used in our datawarehouse or OLAP database AdvworksDW. After migration we were expecting the schema/user name in oracle will be schmdw. But it is coming as schmdw_AdvworksDW i.e. schemaname_databasename. How can we get rid of this and get the schema/user name in Oracle as schmdw only? Can anyone help me in this regard?
In Oracle, there's no supported way to rename a schema/user. The best solution for you is to create another user, SCHMDW in your case, and give it grants on all objects of the SCHMDW_ADVWORKSDW plus synonyms. Have a look at the second comment on this post, it gives a pl/sql script to automate that.

SQL Developer - default open specific tables after connection

does anyone know how to set up default "seeing" of specific tables after connecting to the DB? E.g. we have tables A,B,C,D and after connecting to the DB I want to see TAB with table A and TAB with table B.
Thank you
Sorry, this isn't possible today in Oracle SQL Developer.
You could submit an enhancement request to My Oracle Support or put in an idea to sqldeveloper.oracle.com

What is the query to display all database in oracle server 9i?

I like to know the query to get all database in oracle server 9i. Actually my requirement is to select all database in oracle and next to get all table , views , procedures , function in each database. Is their any way to get all these information? I am using oracle spl plus developer.
The database names you can get from server file system or check running Oracle Processes.
Then check select * from DBA_OBJECTS WHERE OBJECT_TYPE IN ('TABLE','VIEW','FUNCTION','PACKAGE','PROCEDURE')

confusing about oracle when accessing data

First i want to explain what i have done with my oracle,
i use oracle XE in my win7x64.
i have 3 file contained 'insert into ..' query ..
file 1.sql is about 3MB in inserted by Oracle SQL Developer
file 2.sql is about 30MB in inserted by Oracle SQL Developer
file 3.sql is about 120MB and cannot be inserted by Oracle SQL Developer so i use SQLPlus (#3.sql)
the problem is,
i only see data 1.sql and 2.sql instead data 3.sql when i open my Oracle SQL Developer.
then i only see data 3.sql instead 1.sql and 2.sql when i login from SQL Plus.
what should i do to see my all data inserterd?
i only connect to this XE in my local laptop ..
Need your suggestion :D
== SOLVED ==
i miss commit on both Oracle SQL Developer and SQL Plus
1. commit in Oracle SQL Developer using F11
2. commit in SQL Plus just happening when you type 'exit' or 'quit'
So you have 3 files containing a bunch of INSERT statements, and imported file1.sql and file2.sql using Oracle SQL Developer and file3.sql using SQL/Plus.
What is the output of SQLPlus after running #file3.sql?
Did you do a commit in SQLPlus after importing the data?
What query did you run in SQL Developer afterwards to check whether file3.sql was imported?

Resources