Oracle SQL Plus software vs. PL/SQL Developer software
I am taking a class the used the SQL Plus to perform all the exercises in the book. Will I have any problem using the PL/SQL developer software that I currently use?
thank you in advance for any help offered on this thread..
You may encounter difficulties if your course covers functionality provodided by SQL*Plus that are not available in PL/SQL Developer, however, generally speaking most things that can be done in SQL*Plus can also be done in PL/SQL Developer or SQL Developer or Toad.
That said when it comes to learning Oracle it's far better to stick with SQL*Plus and a text editor as it will force you to learn the syntax yourself rather than relying on your tool of choice.
Similar Messages
-
Oracle SQL Developer 3.2, SQL*Plus COLUMN FORMAT bug
SQL*Plus command COLUMN truncates output result in SQL Developer.
Script in Worksheet:
column nn format 999
select level nn from dual connect by level<=10;The Run Script (F5) result contains only 8 lines in Script Output window:
NN
1
2
3
4
5
6
7
8
Changing column alias:
select level nn2 from dual connect by level<=10NN2
1
2
3
4
5
6
7
8
9
10
10 rows selected
The output can contain no data for more formatted columns.
===============================================================
About
Oracle SQL Developer 3.2.09
Version 3.2.09
Build MAIN-09.30
Copyright © 2005, 2012 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.48
Product ID: oracle.sqldeveloper
Product Version: 11.2.0.09.30
Version
Component Version
========= =======
Java(TM) Platform 1.7.0_02
Oracle IDE 3.2.09.30
Versioning Support 3.2.09.30sqldeveloper64-3.2.09.30-no-jre.zip.
My jdk now is 1.7.07 x64, Windows 7 x64.
C:\Java\jdk17\bin>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Gary Graham wrote:Also, I don't understand what you mean by
The output can contain no data for more formatted columns.
Sript:
col owner format a10
col table_name format a20
col column_name format a20
col comments format a50
select
row_number() over(order by column_name) r11,
count(*) over() c11,
owner ow,
table_name tn,
column_name cn,
comments co
from all_col_comments t
where owner='SYS' and table_name='INDEX_STATS';
select
row_number() over(order by column_name) r,
count(*) over() c,
owner,
table_name,
column_name,
comments
from all_col_comments t
where owner='SYS' and table_name='INDEX_STATS';
select 1 from dual;
prompt abcThe output truncated after headers of second queryR11 C11 OW TN CN CO
1 25 SYS INDEX_STATS BLKS_GETS_PER_ACCESS Expected number of consistent mode block gets per row. This assumes that a row chosen at random from the table is being searched for using the index
2 25 SYS INDEX_STATS BLOCKS blocks allocated to the segment
3 25 SYS INDEX_STATS BR_BLKS number of branch blocks in the b-tree
4 25 SYS INDEX_STATS BR_BLK_LEN useable space in a branch block
5 25 SYS INDEX_STATS BR_ROWS number of branch rows
6 25 SYS INDEX_STATS BR_ROWS_LEN sum of the lengths of all the branch blocks in the b-tree
7 25 SYS INDEX_STATS BTREE_SPACE total space currently allocated in the b-tree
8 25 SYS INDEX_STATS DEL_LF_ROWS number of deleted leaf rows in the index
9 25 SYS INDEX_STATS DEL_LF_ROWS_LEN total length of all deleted rows in the index
10 25 SYS INDEX_STATS DISTINCT_KEYS number of distinct keys in the index
11 25 SYS INDEX_STATS HEIGHT height of the b-tree
12 25 SYS INDEX_STATS LF_BLKS number of leaf blocks in the b-tree
13 25 SYS INDEX_STATS LF_BLK_LEN useable space in a leaf block
14 25 SYS INDEX_STATS LF_ROWS number of leaf rows (values in the index)
15 25 SYS INDEX_STATS LF_ROWS_LEN sum of the lengths of all the leaf rows
16 25 SYS INDEX_STATS MOST_REPEATED_KEY how many times the most repeated key is repeated
17 25 SYS INDEX_STATS NAME name of the index
18 25 SYS INDEX_STATS OPT_CMPR_COUNT optimal prefix compression count for the index
19 25 SYS INDEX_STATS OPT_CMPR_PCTSAVE percentage storage saving expected from optimal prefix compression
20 25 SYS INDEX_STATS PARTITION_NAME name of the index partition, if partitioned
21 25 SYS INDEX_STATS PCT_USED percent of space allocated in the b-tree that is being used
22 25 SYS INDEX_STATS PRE_ROWS number of prefix rows (values in the index)
23 25 SYS INDEX_STATS PRE_ROWS_LEN sum of lengths of all prefix rows
24 25 SYS INDEX_STATS ROWS_PER_KEY average number of rows per distinct key
25 25 SYS INDEX_STATS USED_SPACE total space that is currently being used in the b-tree
25 rows selected
R C OWNER TABLE_NAME COLUMN_NAME COMMENTS
- - ---------- -------------------- -------------------- -------------------------------------------------- -
Is it possible to query software inventory report for Oracle SQL developer installation?
Hi all
My company requires to generate a report of all kinds of Oracle database access tool. I can find Toad installation from Add/Remove Program and therefore can query for Toad.
However, Oracle SQL developer is using Java. I cannot see an entry for Oracle SQL developer from Add/Remove Program. Is there a way to query inventory for Oracle SQL developer installation?
Thanks a lot.
Regards
LicYou might be able to use software inventory to report on the version of sqldeveloper.exe.
As the app looks like just a zip you extract to a custom location that might be one method. -
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. -
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? -
How to compare two schemas in Oracle sql developer
Hello,
I need to compare both the data and schemas details (columns etc) between two schemas on different databases (connections).
What is the easiest and most efficient way to do this? Hopefully in Oracle Sql Developer or Sql Plus?
Thanks.In SQL Developer go to Tools -> Schema Diff !
in SQL* Plus you will need to write PL/SQL for this.
Amardeep Sidhu -
How to create a counter using Oracle SQL Developer?
Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
Page Access statistics is recorded on an hourly basis. Users may select the statistics by
yearly (statistics displayed by all months in the selected year)
monthly (statistics displayed by all days in the selected month)
daily (statistics displayed by all hours in the selected day)I'm giving here one basic post - hope this will solve your problem --
SQL>
SQL>
SQL> create table audit_info
2 (
3 usr varchar2(50),
4 log_time timestamp(6)
5 );
Table created.
SQL>
SQL>
SQL> create table err_log
2 (
3 log_cd varchar2(20),
4 log_desc varchar2(500)
5 );
Table created.
SQL>
SQL>
SQL> create or replace procedure ins_err(errcd in varchar2,
2 errnm in varchar2)
3 is
4 pragma autonomous_transaction;
5 begin
6 insert into err_log values(errcd,errnm);
7 commit;
8 end;
9 /
Procedure created.
SQL>
SQL>
SQL> create or replace procedure ins_aud(ud in varchar2,
2 unm in varchar2)
3 is
4 pragma autonomous_transaction;
5 begin
6 insert into audit_info values(ud,unm);
7 commit;
8 exception
9 when others then
10 ins_err(sqlcode,sqlerrm);
11 end;
12 /
Procedure created.
SQL>
SQL>
SQL>
SQL> create or replace trigger log_odsuser1
2 after logon on odsuser1.schema
3 begin
4 ins_aud('ODSUSER1',sysdate);
5 exception
6 when others then
7 ins_err(sqlcode,sqlerrm);
8 end;
9 /
Trigger created.
SQL>
SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL>
SQL>
SQL>
SQL> set serveroutput on
SQL>
SQL>
SQL> select * from audit_info;
USR
LOG_TIME
ODSUSER1
12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
Regards.
Satyaki De. -
If you haven't been paying attention to early adopters of Project Raptor there it is - production release of Oracle SQL Developer, outstanding database development tool. It works very well with XE and if you're somehow reluctant to web interface or too ascetic sqlplus, you shall certainly like it. Very useful and at no charge.
Oracle SQL Developer is a new, free graphical tool that enhances productivity and simplifies database development tasks. With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, and edit and debug PL/SQL statements. You can also run any number of provided reports, as well as create and save your own.
http://www.oracle.com/technology/products/database/sql_developer/index.htmlI use SQL Developer for SQL and PL/SQL and only use SQL*Plus for the few commands that don't work in SQL Developer.
SQL Developer has a forum, too. -
IO Error 17002 in Oracle SQL Developer
Hi,
I am trying to connect to the test database using the Oracle SQL developer but I am getting the below error
IO Error: The network adapter could not establish the connection vendor code 17002
I used to connect to the test server fine 2 weeks ago (the test server is on another network and i connect to it using the VPN).
I am able to connect the the Production Database through the Oracle SQL developer (without VPN) but when I try to connect to the test i am getting the error.
I have checked the service name and ports and everything is fine and. So what could be the problem?I am not able to connect through sql/plus as well
However, I am able to ping the test server -
Oracle SQL Developer needs some work
I just downloaded a copy today (1557) for Oracle 9.2i / Windows XP Pro
Oracle SQL Developer has a few glitches...
A compiled and working package (compiled in SQL*Plus and TOAD) opens and shows 2 errors in a SQL Query involving a CASE statement. Invalid CASE clause on an ELSE and unexpected token on an alias at the end of the case.
Compiling a package should display a message saying successfully compiled and the state of a package should always be on display!
Opened an SQL script but could not execute it as the icon's didn't become active.
Couldn't then run the script.
These basic problems would put any serious developer off using Oracle SQL Developer.
Also background color scheme should be gray and NOT white. White is hard on the eyes. This is just basic UI stuff.
Oracle, you need more senoir developers!Justified to the top left of the sql window, you see the execute buttons. On the top right, you will see a drop down list box. After opening a file, this drop down list box is not selected. Select your connection and the execute buttons on the top left will enable.
For PL/SQL use a slash / at the end for it to execute. -
Can i run all the SQL And PL/SQL in Oracle SQL Developer?
hi all
I have heard that Oracle Sql Developer is a free editor for Oracle DB from Oracle.
Is it possible to run all the the procedres and functions in that editor
is there any limitation for that ,can i run all the things that we can run on the SQL Plus
if anybody knows please let me know
thanks & regardsInteresting way of putting it.
When it comes to SQL and PL/SQL, SQLPlus and SQL Developer do not really 'run' very much.
Most of the time, these things are just shells that pass the SQL and PL/SQL requests to the appropriate engine (database) which will run the command.
The challenges are:
- will the shell interpret the request as something to pass to an engine?
- will the shell display the response from the engine appropriately?
For answers to those questions, TongucY provided approriate links. -
ORACLE SQL DEVELOPER and SQLPLUS
How can I run the sqlplus command inside of ORACLE SQL DEVELOPER?
Whe I try to run show SGA command , I get "SQLPLUs command skipped"jung1975,
I have SQL Developer version 1.0.0.14 installed on my PC.
Under the "Tools" menu, there is a "SQL*Plus" item.
However, you need to have access to the "SQL*Plus" executable.
Since my database server is on a different machine (to my PC), that means I need to have Oracle Client also installed on my PC.
Good Luck,
Avi. -
Oracle SQL developer tool vs toad
Hi - I am trying to do a feature comparison on these 2 tools and am not very familiar with them could someone please tell me if Oracle SQL developer tool has these features:
Project Manager
Result Set Compare
Chart Designer
Toad Report Wizard
Pivot & Chart
Data Compare and Synch
Automation
Simple Cross-Platform Queries
Advanced Cros-Platform Queries
Local Data Storage
Data Transformation and Cleansing
Data Browser
ER Diagrammer
Charts & Pivot Table Reports
Automation & Scheduling Engine
Data Compare & Sync
Cross-connection QueryHi!
I have worked with several Oracle IDE's in the past:
* TOAD
* PL/SQL Developer
* Navigator
* SQL/Developer
Right now I tend to do most of my work with SQL-Developer and only some tasks with TOAD.
SQL-Developer feels faster and has a cleaner interface than TOAD, while TOAD has better tools.
Im currently publishing a series of tips for SQL-Developer in my blog:
http://oracledeli.wordpress.com/
Some of the posts are focussing on overcomming SQL-developers disadvantages versus TOAD:
* SQL-Developer: Using macros http://oracledeli.wordpress.com/2011/09/28/sql-developer_using_macros/
* Execute current worksheet file via SQL*Plus (external tools) http://oracledeli.wordpress.com/2011/09/23/sql-developer_execute_via_sqlplus/
Best regards,
Matt
Best regards,
Matt -
Oracle SQL Developer vs Navicat Oracle vs Toad
I've been using MySQL and planning to migrate it to Oracle, but, I'm looking for an admin tool for Oracle and heard that Navicat for MySQL is now available for Oracle. It can create, edit databases, import/ export data,etc, so many features, I tried Toad for Oracle too. It's good but very expensive.
Navicat for Oracle and Oracle SQL Developer have a free version and I'm choosing between them. I am now in the dilemma :(SQLDeveloper, of course :>
Kind of a biased answer, with this being a SQLDeveloper forum... but the cost, active forum, and cross-platform capability win the argument for me.
I've used both the MySQL supplied tools (administrator, query browser) as well as SQLDeveloper for a while, and I'm now more at home with SQLDeveloper than the others. It feels "right" for me, so when I'm working with both databases, SQLDeveloper is the tool I use.
Support for MySQL is limited compared to what it can do for Oracle (obviously, it's an Oracle tool), and if you want to do DDL on a MySQL database, you can't point and click (you've got to type the commands in the worksheet), but for most of my work, I can do what I need using it.
Plus, there's always the backup of the MySQL tools for those tasks you can't do in SQLDeveloper.
Regards,
John -
Getting the schema using Oracle SQL Developer 1.5.1
I need to generate a report in CSV/XLS format using Oracle SQL Developer 1.5.1 to get the schema details
in the below format.
Table Name: XXXXXXXXX
Table Space Name: XXXXXXXXXXXXXXX
Structure :
Field Name Data Type Size
Xxxxxxxx xxxxxx xxxxx
Xxxxxxxx xxxxxx xxxxx
Xxxxxxxx xxxxxx xxxxx
Xxxxxxxx xxxxxx xxxxx
Field level constraint:
Xxxxxxxxxxxxxxxxxx
Table Level Constraint:
Xxxxxxxxxxxxxxxxxx
Indexes:
Index Name Column Name(s) Table space name
Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
Sequence Number:
Xxxxxxxxxxxxxxxx
Triggers:
Xxxxxxxxxxxxxxxxxx
I am using a query to do that, but I cannot run more than one queries in the Create Report Dialog.
I went to the Menu->View->Reports. In that, I chose User Defined Reports, created a new folder called Schema Detail and in that a report named Schema Detail. I right click on that report, choose Edit option, Create Report Dialog opens.
In the Create Report Dialog, I chose the option Script for Value of Style.
In the SQL column I enter a query "select * from table_names". But, if I enter another query after that, it does not run and reports an error "SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - SQL command not properly ended" Cause: Action: "
I end the first query with a semi colon, but it does not work.
The queries run fine in a SQL Worksheet. There, I can terminate the first query with a semi colon and enter the second query. Then, I run both of them together so that result-set of second query appears after the second.
Am I doing something wrong? Can someone please advise on how to get the information I need?
Thanks a lot.You can do it in SQL Worksheet because you are running a script. You could run the script in SQL*Plus, and even start it from a bat/cmd file.
Or if you want this as a User Defined Report, you might make it a PL/SQL style report. Here, all output is done through DBMS_OUTPUT.PUT or DBMS_OUTPUT.PUT_LINE. You can output HTML tags or plain text. I have an example in my paper for ODTUG Kaleidoscope 2009. -
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?
Maybe you are looking for
-
Unable to extract the data from ECC 6.0 to PSA
Hello, I'm trying to extract the data from ECC 6.0 data source name as 2LIS_11_VAHDR into BI 7.0 When i try to load Full Load into PSA , I'm getting following error message Error Message: "DataSource 2LIS_11_VAHDR must be activated" Actually the data
-
Iweb on brand new computers?
Has anyone purchased a new computer (since July 15, 2011 and with Lion installed) and found iweb preinstalled on it as part of the usual iLife suite that comes with a Mac? I did a quick "spotlight" search in the Apple Store the other day. While the
-
Safari can't be installed on this disk - It wants 10.6.7 I have 10.6.8
Safari was playing up with errors so I decided to trash it and download the latest version to see if it would fix teh problem - when I went to install it I got the following message; safari can't be installed on this disk - Thjis update requires 10.6
-
Regarding WBS settlement Rule using WBS_SETTLEMENT_RULE BADI
Hello every one could any one tel me about Settlement rule of WBS by using BADI WBS_SETTLEMENT_RULE I wanted to use same settlement rule far all WBS under same project eg IF user enter settlement rule for WBS level 1 that should get copy into remain
-
Hi all, I have a problem by using the method cl_xslt_processor->set_expression( expression = ... nsdeclarations = ... ). I want to use this method to get some nodes by using Xpath. My problem is the parameter 'nsdeclarations' which should be filled l