Newbie to Oracle SQL Developer
Hi guys, cheers for taking the time to read this post.....
Im running a few different scripts in Oracle SQL Developer, one called CreateLocalSchema.sql, another CreateLocalProcedures,sql and a third SystemSetup.sql
When I press f5 to run the Systemsetup.sql, im prompted to "enter the identifier of system". Does this mean the SID? Ive tried XE, my username (lbell),orcl.
Not sure what to enter here. Im getting this error through most of the script output window.
SQL Error: ORA-00904: "SYSTEMID": invalid identifier
+00904. 00000 - "%s: invalid identifier+
Do i need to do anything that i havent realised? Any help would be appreciated.
Thanks
Hi 899065
It depends on the script. You are being asked for input via substitution variable '&variablename' or '&&variablename' or via the accept command.
set echo on
before running the script will display the command before the output is printed. This may be reset within the script i.e. set echo off .
Forum: SQL Developer *(Not for general SQL/PLSQL questions)*
might be worth trying if the script works in sqlplus.
-Turloch
SQLDeveloper Team
Similar Messages
-
Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
First of all; it would be difficult to know less about Oracle than myself.
I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
I wanted other views of the data and so logged in from the command line using SQLPlus.
The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
No fun ! What am I not understanding here ?5e33d18c-3b32-48d4-82a7-676feeaa97c9 wrote:
Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
First of all; it would be difficult to know less about Oracle than myself.
I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
I wanted other views of the data and so logged in from the command line using SQLPlus.
The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
No fun ! What am I not understanding here ?
Others sessions never see uncommitted data
> then wrote code to delete some rows. Lots of fun.
did you ever actually issue COMMIT so other session can see the changed data? -
BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?
I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
I will describe the steps that I gave:
I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
(COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
AS
SELECT column1, column2
FROM table1
INNER JOIN
(SELECT
FROM table2
INNER JOIN .....
INNER JOIN ....
--where time_stamp = (select max(time_stamp) from .....)
WHERE time_stamp >= TRUNC(sysdate)
) t1 ON t1.ID = ....
AND ..... >= TRUNC(sysdate)
ORDER BY ....
Generating DLL returns this(when the error occurs):
CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
AS
(COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
AS
SELECT column1, column2
FROM table1
INNER JOIN
(SELECT
FROM table2
INNER JOIN .....
INNER JOIN ....
--where
WHERE time_stamp >= TRUNC(sysdate)
) t1 ON t1.ID = ....
AND ..... >= TRUNC(sysdate)
ORDER BY ....
I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
Would you mind telling me if this is a real bug or if I'm doing anything wrong.
Thank you in advance,
Rodrigo Campos
Edited by: 894886 on 3/Nov/2011 5:29Hi Rodrigo,
Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
Regards,
Gary
SQL Developer Team -
Unable to display results of multiple query in grid in Oracle SQL Developer
Hi, I am a newbie to this forum and couldn't find the Oracle SQL Developer forum so posting it here.
My question: How to display multiple query results in grid in Oracle SQL Developer.
Example:
select * from Employee;
select * from Department;
- when I select both the queries and hit F5 in Oracle sql developer. By default it displays in output window.
- How to display result of both the queries in Grid.
Any thoughts on this would be really helpful.
Thanks in advance.
HarshHi Harsh,
I'd say that the Results grid is designed to only show the results of 1 query at a time. I don't know/can't see how it would display multiple queries at a time.
I would suggest either joining your tables to create a single query or opening another SQL Worksheet for one of the queries so that you can display the results side-by-side.
Maybe you could explain what you're trying to do. Why are you trying to display multiple results in the same query grid? -
How to connect database using oracle SQL developer
Hello
I am newbie in EBS R12
I downloaded Oracle SQL Developer
and create new database conenction
Connection name: ebs demo db connection
username:
password:
Role: Default
Connection type: Basic
Hostname: ebstailin.demo.com
Port: 1521
SID: clone
when i try this there is an error
Status: Failure-Test failed: lo exception: The Network Adapter could not establish the connection
no idea about this
but i used the apps/apps as username and password
please help
thanks
Edited by: cheesewizz on Jul 16, 2010 11:35 PMHello
Thanks for your reply
I tried to connect and here is the result: see below
[oracle@ebstailin 11.1.0]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jul 17 15:35:31 2010
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CONNECT apps/apps
Connected.
SQL>
But still cannot connect using ORACLE SQL Developer
thanks -
Oracle SQL developer configuration file
Greetings experts,
I'm a newbie in a Java and Database world trying to understand configuration file in Oracle SQL developer. It uses command like AddVMOption. I'm guessing this is a Java language related command. Is this true? If yes, what does it do?
Regards,
ValerieThis is a java virtual machine argument
-
Oracle SQL Developer Connection Help
Hi,
I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
"Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
Thanks!933874 wrote:
Hi,
I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
"Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
Thanks!If you have SQL Developer installed & need to connect to some Oracle DB,
then you do NOT need Oracle client.
FWIW - SQL Developer is written in Java & uses JDBC (thin) to connect to the DB
Is the DB Server on a subnet local to your system? -
How to print a something in oracle sql developer
Hello all
Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
thank u in advance.
best1003209 wrote:
Hello all
Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
thank u in advance.
bestDBMS_OUTPUT() -
Oracle SQL Developer 1.0 is easy to install and use, and is portable
I have tried the latest version of Oracle SQL Developer 1.0 and would like to share my experience of using it.
Installation of Oracle SQL Developer 1.0
Download from
http://www.oracle.com/technology/software/products/sql/index.html?_template
Unzip the Oracle SQL Developer for Windows (55.8 MB) to C:\sqldeveloper (103MB)
Advantages: The unzip folder can be your removable disk and you can access Oracle
anywhere provided that there is an Internet connection to Oracle Server.
Unzip sqldeveloper-1557.zip to C:\ with folder name;
double-click on sqldeveloper.exe in c:\sqldeveloper
Click on [No]
Tick all check boxes
Click on [OK]
Right-click on Connections, New
Database Connection…
Enter User name: SCOTT
Password: TIGER
Hostname: 127.0.0.1 (or IP of your Oracle Server on the Internet)
SID: orcl
If you want to connect to local Oracle user SYS,
Enter User name: sys
Password: ora10g_manager_password
Hostname: 127.0.0.1
SID: orcl
Select Role: SYSDBA
Click on [Connect]
Right-click on Tables, Create Table
Click on [Add Column]
Select Type: NUMBER for COLUMN2
Click on [OK]
Table1 is created
Click on TABLE1, click on “Data” tab
Click on the “Green Plus” icon to insert record
Click on “Commit Changes” icon
Click on “DBConnection1” tab
Enter: select * from table1;
Click on “Execute Statement (F9)” icon
To exit: Click on File, ExitHave you noticed that there's a forum dedicated to SQL Developer?
C. -
Copying from Oracle SQL Developer Worksheet doesn't retain formatting (font,color etc...)in Microsoft Word but copying from other programs such as
visual studio, chrome browser etc works fine. This doesn't work even after changed the setting to Keep Source formatting of Options-> Copy and Paste SettingsHi,
I notice that you have cross posted in Answers forum and Oracle forum. Have you tried Mr. Peter's suggestion?
Then, I recommend we check the Word settings:
1. Go to: Options > Advanced > Cut, Copy and Paste
2. Make sure that Use smart cut and paste is ticked.
3. Click the Settings button next to this option
4. Make sure that Smart Style
Behavior is checked.
If the issue still exists, please upload a sample through One Drive, I want to test.
Regards,
George Zhao
TechNet Community Support -
Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64
Hi Everyone,
I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
An error was encountered performing the required operation Got a minus one from read call .Vendor code 0
However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
My TNSNAMES .ora file is as follows:
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORACLE)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
My Listener.ora file is as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = Oracle)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(SID_NAME = Oracle)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
ADR_BASE_LISTENER = D:\app
My Sqlnet.ora file is as follows:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
ORA 12537 : TNS Connection closed
Thanks for your patience and help in advance.
---PrashantHello Irian and Sue,
I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
Used parameter files:
D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
*)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
TNS-12537: TNS:connection closed
Thanks for your response to my initial post.Do u have any other methods to resolve this? -
I recently started working on the Oracle SQL developer. I have 'select' privileges on the QA schema and when tried to execute proc in QA. It is giving the error as 'The file-based source <procedure Name> is not present in the database. Was it compiled?'
instead 'you do not have sufficient privileges to execute this procedure'. Did research on internet but with no luck.What configuration changes needed to be done to make it work.Guide me.Sounds like you do not have the correct privileges. What should have been granted to you by the QA user, or some other user with appropriate privileges, is...
grant EXECUTE on "QA"."<PROCEDURE_OF_INTEREST>" to "<YOUR_USERID>" ;
Note that a grant of execute on a procedure has nothing to do with grants of select on some or all of QA's tables and views.
So, as Vadim suggests, from your connection node in SQL Developer's Connections view, if you expand the Other Users node, then expand QA and look in the Procedures node, do you see the procedure of interest? If not, you cannot expect to be able to execute it from your userid's connection. And even if you do see it, you may have some other privilege that permits viewing but not executing, like...
The role SELECT_CATALOG_ROLE
The system privilege SELECT ANY DICTIONARY
And even if you do not see it there, then having certain other privileges granted to you could permit executing it in general, like...
The role EXECUTE_CATALOG_ROLE
The system privilege EXECUTE ANY PROCEDURE
Also, note that the 3.0 release is a bit dated nowadays. Upgrading to 4.0.3 production or even the 4.1 EA2 (early adopter) release will, in general, give you a better experience.
Best wishes,
Gary -
How to change the password of a schema using Oracle SQL Developer
Hi need to change the password of a schema using Oracle SQL Developer how do i do it?
Hi
alter user username identified by password -
How to get all tables in oracle sql developer with MS SQLServer
Hi All,
I am using microsoft SQL server 2000. For displaying the tables and other stuff i am using oracle SQL developer tool. The problem is when i connect to sql developer with oracle database i can see all the tables in that database. But when i connect to MS SQL server database it is not showing all the tables in that database. I don't know why?.
i tried doing the samething using another tool called Aqua Data Studio , there i can able to see all the tables in microsoft SQL server 2000.
do you have any knowledge regarding this, why i am not getting all the tables in oracle sql developer when i connect to microsoft SQL server 2000.Same issue here. Haven't found the answer yet..
-
How to see job section in "Oracle SQL Developer"
Hi,
I am using oracle SQL developer to connect to oracle instance unlike procedure,tables,views i am not able to see job section (we have can see in toad as job section) please help me to get locate the same.There's no support for jobs yet. Vote on the existing feature requests at the SQL Developer Exchange if you want to add weight for future implementation.
If you have trouble handling them manually, you can always ask help on the SQL And PL/SQL forum...
Thanks,
K.
Edited by: -K- on 20/05/2009 12:27:
BTW, there are some job reports (Reports - All Reports - Data Dictionary Reports - Jobs), but those will list only DBMS_JOB stuff, not the DBMS_SCHEDULER ones.
You can also create your own reports and/or User Defined Extensions to add a Jobs node inside the connection navigator, but that's for more advanced users...
Maybe you are looking for
-
Time Machine - including a external hard drive in time machine back up.
I have recently updated to a 2014 15 inch Macbook Pro running OS X Yosemite. Previously on my 2006 Macbook I have used a 750GB hard drive with iMovie to store old files and subsequently back up this drive and my Macbook to a separate 3 TB external ha
-
Satellite P200-1EE - Can I get a Blu-Ray drive for it?
At last, Toshiba have joined the BDA!!!!!! Does any one know if or when they will release a Blu-Ray drive to replace the HD-DVD drives in a P200-1EE? I know this post may be little premature but I have felt betrayed ever since buying the laptop and 3
-
How can i writ many times in one Excel
I have a numbers in open excel,and than i want to compar those numbers to the new numbers, if it same the new number to be writ like the same as showing in excel (Abou55).but my probleme is when i am trying to writ the second number the first number
-
Content Viewer for Web, when can we sign in?
Content Viewer for Web is updated to Version: 1.r24.0.35. But how - and when - can we make it work with our Entitlement service?
-
TS2755 Can't get Netflix to load & videos on facebook,what am I doing wrong?
I have been trying for 2 days to get my iPad 2 to stream video from Netflix & facebook & all it does is sit there & load or spin someone please tell me how to fix?