Sql developera and packages
is any having problems with sql developer 1.1.3 showing code from pl/sql packages? it works fine with 9i not with 10gr2. Please help.
I'd suggest posting in the SQL Developer forum
SQL Developer
Similar Messages
-
View jobs with SQL Developer and export to file with delimiter
Hi,
is there a way to view, create and alter my database jobs with SQL developer?
And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
Diego.Hi and Welcome to the Forum!!
To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file. -
SQL Developer and Blocking View of Other Users' Objects
I am using SQL Developer in a classroom environment. My student users can “see” Other Users objects. They cannot modify, but none the less can see the structure and data.
I only want the users to be able to see their own objects. Is there a privilege that needs to be revoked? (In using SQL Plus command line, this was not a problem.)
Thanks.
-KarenKaren,
From sysdba account (sys/system). Run following and verify for that particular user grant is revoked. May be exit from sql developer and log back in or refresh view.
YOu can also potenially revoke all the privs from all non admin uses i.e.r even connect/resource roles and grant them back.
revoke select any table from yourschemaname;
revoke connect from schemaname;
revoke create session from schemaname;
revoke resource from schemaname;
Then just grant privs as need basis
grant connect to schemanme;
grant resource to schemaname;
grant create session to schemaname;
..Regards
Edited by: OrionNet on Jan 23, 2009 2:01 PM -
Links for SQL Developer and Data Modeler not working?
Hi folks,
I tried to access the new SQL Developer and Data Modeler links posted in the April 1 message (and on the Oracle site) from a couple of machines with no luck (empty zip files) - is there an update to the links?
Thanks!
TomoIn Firefox zero length zip. In IE loses connection to downloads.oracle.com.
-
Install Oracle XE, SQL Developer, and Toad on the same machine?
I have been trying to install Oracle SQL Developer, Toad, and Oracle Express on my work computer. Installing SQL Developer and Toad was pretty straightforward, and I was able to browse the XE database with SQL Developer. But after installing Toad, problems started. Toad was using Oracle XE's registry settings to locate ORACLE_HOME and oci.dll. So I tried changing the settings for Oracle XE in the registry. Toad now works, but not Oracle XE. And while I was going through this all, I even had a time when I had Toad and oracle xe working, but not SQL Developer. It almost looks like you can choose two of the products, but not all three.
So, my question to the community at large is "Can it be done?". In what directories do you have each product installed? What environment variables do you have set? Where is your tnsnames.ora? What Oracle registry settings do you have set (namely HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE)?
I can post my current settings, but I've been through so many iterations that these current settings don't really matter that much.
Here are the details I am looking for
Path to sqldeveloper.exe
Path to oracle.exe (for Oracle XE)
Environment Variables
ORACLE_HOME
ORACLE_BASE
TNS_ADMIN
PATH (just the oracle stuff)
Registry Settings
HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_HOME
HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_BASE
HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\TNS_ADMIN
HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\OLEDB
HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORAMTS_CP_TRACE_DIRI don't use toad, but there should be no reason why you can't install all 3. SQL Developer is a very clean install and affects nothing else. It doesn't add to the path, or create any registry entries except for file associations.
A toad installation should pick up your oracle client (in this case the XE code). I am curious as to why you felt you had to change registry settings. What problem were you trying to fix?
My recommendation would be to uninstall everything, clean the registry and reinstall in the order XE, Toad, SQL Developer. Test in between installations and seek help for problems as you find them. Bear in mind that this is the forum for SQL Developer. QUestions about Oracle XE would be better answered in the dedicated forum, or in the Installation forum, and questions about Toad in a toad forum. -
Sql Developer and Data Guard enabled instance
I have version 1.1.2.25 SQL Developer and when I try to connect to Oracle 10gR2 instance which is data guard enabled and its logical standby it spits few message, and then connects, but data is not visible from any table.
Is there any way to see data and other code while in logical standby instance which only in read only mode?
Thanks.This problem came when I tried to connect to Oracle
instance which is a logical standby in data guard
setup. Eventually connection is made and then you can
not see any object.
In logical standby database its suppose to be read
only and should be available for query.
In TOAD you can see every thing and when you want to
make any change ,it spits an error and wouldn't allow
you to make any change.
My question was, why SQL Developer is not showing the
objects in the list and its contains.Perhaps we could help you if you told us what the error was. -
Oracle SQL Developer and Errors (Line Number Incorrect)
First, I wanted to state that Oracle SQL Developer 2 is a standout job.
I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
Is this something I could fix on my end? I have five other developers griping about this.
Thank you!I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
select * from dual;
select * from dual;
select * from dual;
select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
theFurryOne -
SQL Developer and External Procedures not in tree.
Does sql Dveloper add external procedures to the object browser tree? I have SQL Developer 1.5 and if you have external procedures/functions before your regular PLSQL objects they will not display in the tree. I can make the tree work but the tree still doesn't capture the externals. Am I doing something wrong or should this be a feature request?
VSAMPLE1 shows the problem.
VSAMPLE2 is a try to resolve...
/* the problem.. */
CREATE OR REPLACE package VSAMPLE_1 IS
PROCEDURE foobar(feedname IN VARCHAR2);
END VSAMPLE_1;
CREATE OR REPLACE PACKAGE BODY VSAMPLE_1
IS
* Function Name:- canread
* Description :-This function checks the file will give any error or not while reading
FUNCTION canread (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.canRead (java.lang.String) return int';
* Function Name:- is_exist
* Description :-This function checks the existance of the filein the required folder
FUNCTION is_exist (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.exists (java.lang.String) return int';
* Function Name:- isDirectory
* Description :-This function checks the name provided by the user is a directory or not
FUNCTION isDirectory (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.isDirectory (java.lang.String) return int';
* Function Name:- isFile
* Description :-This function checks the name provided by the user is a file or not
FUNCTION isFile (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.isFile (java.lang.String) return int';
* Function Name:- isExist
* Description :-This function checks the existance of file,correctness of the directory provided by the user.
* @Param file_name :- File Name in directory
* @return retcode :- Error checking while uploading the feed.
FUNCTION isExist(file_name IN VARCHAR2,
is_dir BOOLEAN)
RETURN PLS_INTEGER
IS
retcode PLS_INTEGER := -1;
v_errcode PLS_INTEGER;
v_errtext VARCHAR2(1000);
l_section_name VARCHAR2(32) := 'isExist ' ;
BEGIN
IF VTMLOG.isDebugEnabled THEN
VTMLOG.debug(l_section_name,$$PLSQL_LINE, 'Checking existense of '||file_name);
END IF;
retcode := is_exist(file_name);
IF retcode = 1 THEN
IF is_dir THEN
retcode := isDirectory(file_name);
ELSE
retcode := isFile(file_name);
END IF;
IF retcode = 1 THEN
retcode := canread(file_name);
IF retcode != 1 THEN
VTMLOG.error(l_section_name,$$PLSQL_LINE, ' Can not read ' || file_name);
END IF;
ELSE
VTMLOG.error(l_section_name,$$PLSQL_LINE, ' Unable to check if ' || file_name || ' is directory or file ');
END IF;
ELSE
VTMLOG.error(l_section_name,$$PLSQL_LINE, file_name || ' does not exist ');
END IF;
VTMLOG.debug(l_section_name,$$PLSQL_LINE, 'Leaving ' );
RETURN retcode;
EXCEPTION
WHEN OTHERS THEN
VTMLOG.SHOW_ERROR_MESSAGE(l_section_name,$$PLSQL_LINE);
RAISE;
END isExist;
PROCEDURE foobar(feedname VARCHAR2)
IS
retval PLS_INTEGER;
BEGIN
/* implementation omitted */
retval := isExist('feed.txt',false);
EXCEPTION
WHEN OTHERS THEN
RAISE;
END foobar;
END VSAMPLE_1;
/* This version at least shows the tree. But I can't reach the external by clicking in the navigation tree just the placeholders */
PROCEDURE foobar(feedname IN VARCHAR2);
END VSAMPLE_2;
CREATE OR REPLACE PACKAGE BODY VSAMPLE_2
IS
FUNCTION canread (FILE IN VARCHAR2) RETURN NUMBER;
FUNCTION is_exist (FILE IN VARCHAR2) RETURN NUMBER;
FUNCTION isDirectory (FILE IN VARCHAR2) RETURN NUMBER;
FUNCTION isFile (FILE IN VARCHAR2) RETURN NUMBER;
* Function Name:- isExist
* Description :-This function checks the existance of file,correctness of the directory provided by the user.
* @Param file_name :- File Name in directory
* @return retcode :- Error checking while uploading the feed.
FUNCTION isExist(file_name IN VARCHAR2,
is_dir BOOLEAN)
RETURN PLS_INTEGER
IS
retcode PLS_INTEGER := -1;
v_errcode PLS_INTEGER;
v_errtext VARCHAR2(1000);
l_section_name VARCHAR2(32) := 'isExist ' ;
BEGIN
IF VTMLOG.isDebugEnabled THEN
VTMLOG.debug(l_section_name,$$PLSQL_LINE, 'Checking existense of '||file_name);
END IF;
retcode := is_exist(file_name);
IF retcode = 1 THEN
IF is_dir THEN
retcode := isDirectory(file_name);
ELSE
retcode := isFile(file_name);
END IF;
IF retcode = 1 THEN
retcode := canread(file_name);
IF retcode != 1 THEN
VTMLOG.error(l_section_name,$$PLSQL_LINE, ' Can not read ' || file_name);
END IF;
ELSE
VTMLOG.error(l_section_name,$$PLSQL_LINE, ' Unable to check if ' || file_name || ' is directory or file ');
END IF;
ELSE
VTMLOG.error(l_section_name,$$PLSQL_LINE, file_name || ' does not exist ');
END IF;
VTMLOG.debug(l_section_name,$$PLSQL_LINE, 'Leaving ' );
RETURN retcode;
EXCEPTION
WHEN OTHERS THEN
VTMLOG.SHOW_ERROR_MESSAGE(l_section_name,$$PLSQL_LINE);
RAISE;
END isExist;
PROCEDURE foobar(feedname VARCHAR2)
IS
retval PLS_INTEGER;
BEGIN
/* implementation omitted */
retval := isExist('feed.txt',false);
EXCEPTION
WHEN OTHERS THEN
RAISE;
END foobar;
* Function Name:- canread
* Description :-This function checks the file will give any error or not while reading
FUNCTION canread (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.canRead (java.lang.String) return int';
* Function Name:- is_exist
* Description :-This function checks the existance of the filein the required folder
FUNCTION is_exist (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.exists (java.lang.String) return int';
* Function Name:- isDirectory
* Description :-This function checks the name provided by the user is a directory or not
FUNCTION isDirectory (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.isDirectory (java.lang.String) return int';
* Function Name:- isFile
* Description :-This function checks the name provided by the user is a file or not
FUNCTION isFile (FILE IN VARCHAR2)
RETURN NUMBER AS LANGUAGE JAVA NAME 'com.myCompany.myApp.bulk.FileUtil.isFile (java.lang.String) return int';
END VSAMPLE_2;
/Hi,
I am afraid that according to the error message, it seems that this issue is mainly related to third-party, since issues using oracle database are not supported here, you could consider posting this issue in its website to get supports.
In addition, you could mark any reply as answer if it is helpful.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
SQL Developer and TOAD connection.
Hi,
I am able to see the DDL script for tables using TOAD, but NOT using SQL Developer (2.1.1). Same user, pass, and tnsname file.
They use same tnsname.ora file on my computer. I set basic and TNS connection for SQL Developer.
The connection is from my computer to the server (Oracle 11.1.0.7 EE).
ORA-31603: object "ALARM_DEFINITION" of type TABLE not found in schema "AIRCOM"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 3241
ORA-06512: at "SYS.DBMS_METADATA", line 4812
ORA-06512: at line 1
It is same with packages. I cannot see package body.
What is the different and which additional privileges I need to see the DDL script?
Thanks in advance for your help!
KonstantinI don't think it's a connection issue. There seem to be differences in how Oracle and Toad access system views to show objects. If you search the boards you see it has effected a couple of people. Sometimes they post what permissions they changed to get things to work for them.
ie... Re: Issue with viewing Package Body in SQL Developer 2.1 RC1
I don't think I've seen any official documentation to indicate what privileges need to be granted in order to see them thought. And I think there is a bug that prevents generating DDL for tables owned by other users. I don't know if that extends to generating stored procedure code. -
SQL Developer and Linux, Windows
SQL Developer it is established on linux Fedora 8, a database on Windows NT.
NLS_LANG=AMERICAN_AMERICA.CL8MSWIN1251
I Carry out " Save Package Spec and Body " with parameter File Encoding cp1251 but when I carry out this script in a DB instead of Russian letters I receive signs on a question (?????). And in notepad Win also questions.
what I incorrectly do??????Hi Gooddy,
I exported Cyrillic comment fine as UTF8 and my database is ALU32UTF8 is utf8 an option?
It is unclear where the corruption is.
-You have saved a package to the database with Cyrillic in it.
Can you retrieve the package on screen with no '????'? i..e is it successfully in the database?
-Can you export the Cyrillic package using utf-8?
-Can you export the Cyrillic package using cp1251?
-Turloch -
Oracle sql developer and access db
Hi All,
I have connection to oracle and Access dbs’ on my oracle sql developer.
When i try to create a database link from oracle db to access db i have to add Host Name.
Connection details to access looks like this :
@jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\ list.mdb;DriverID=22;READONLY=false}
I tried different variants, but it doesn’t work.
Is this possible to create database link to access db, and if yes, what i have to add for a host name and what is the syntaxes for cross table ?
Thank youGood documentation here... http://www.orafaq.com/node/60
TimS -
Oracle SQL Developer and Application Express
Hi all,
I have a SQL Developer 1.5.4.59.40 and have an application developed in Application Express 10G XE with APEX 3.1.2. I have successfully opened my schema which owns an application, but to my surprise there is no node for viewing my application????? How can i view my application?
With Regards,
Sunil Bhatia - Programmer
Eon Technologies Pvt Ltd
Edited by: Sunil Bhatia on Mar 26, 2009 9:39 AMHello,
If you go to your parsing scheme in SQL Developer for ex. SCOTT you'll see a node Application Express.
That should list all the applications that have the SCOTT parsing scheme defined in your APEX application.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/
REWARDS: Please remember to mark helpful or correct posts on the forum -
Oracle sql developer and oracle express
I am new in PL/SQL
I just wonder for run the pl/sql , why has the different result for two tools
for the following example I get out put on the express
Employee 145 commission .4 which is High
Statement processed.
on sql developer I get
anonymous block completed why???
DECLARE
n_pct employees.commission_pct%TYPE;
v_eval VARCHAR2(10);
n_emp_id employees.employee_id%TYPE := 145;
BEGIN
-- get commission percentage
SELECT commission_pct
INTO n_pct
FROM employees
WHERE employee_id = n_emp_id;
-- evalutate commission percentage
CASE n_pct
WHEN 0 THEN
v_eval := 'N/A';
WHEN 0.1 THEN
v_eval := 'Low';
WHEN 0.4 THEN
v_eval := 'High';
ELSE
v_eval := 'Fair';
END CASE;
-- print commission evaluation
DBMS_OUTPUT.PUT_LINE('Employee ' || n_emp_id || ' commission ' || TO_CHAR(n_pct) || ' which is ' || v_eval);
END;
/Hjava wrote:
I just wonder for run the pl/sql , why has the different result for two tools
for the following example I get out put on the express
Employee 145 commission .4 which is High
Statement processed.
on sql developer I get
anonymous block completed why???Nothing to do with the database or PL/SQL.
The client makes the call (e.g. passing the PL/SQL anon block to the server to be parsed and executed).
This is successful. The server returns a zero return code to that client call. This means successful completion of that database call.
The client can now choose to display any message it wants to inform the user of that - from "+hey dude, it worked!+" to "+command completed successfully+" or whatever.
The database does not return a message string in response to that call - only a return code. What the client can do is make another call and request the associated message from the client driver for that return code. In this case, an English language message file (as queried by the driver) will return the message string, "+normal, successful completion+". -
SQL Developer and Oracle Database 10g Express Edition, Connection Problem
I am using SQL Developer version 1.2.1 and am connecting to a 10g database on a windows xp.
Up until today there have been no problems with the connection. When I tried to connect to the database and have not been able to.
The error states that "...listener refused the connection with the following error: ORA-12505, TNS; listener does not currently know of SID given in connect descriptor..."
Also tried to log into the database home page but page doesn't load...I'd bet the database is down.
Try a login through sqlplus ("Run SQL Command Line" in the Oracle Express Edition 'Start' menu).
Do a CONN / AS SYSDBA
If you get a message about database or memory area not available, try STARTUP.
If that doesn't work, you are best off in the General Database forum or the Express Edition forum.
You'll probably get the most expert response in General Database, but the Express Edition forum can be gentler on newbies (as it is more accepted that questioners are not and do not have access to full-time DBAs). -
Oracle SQL Developer and commit
I have the auto commit in SQL Worksheet unchecked and disconnect a worksheet with open transaction and the data is commited !!
I have to set another option??
When I close the SQL Developer no questions if I'm sure to close or i want to perform a commit (like toad).
Thanks.you may want to try this forum:
SQL Developer
Maybe you are looking for
-
External Hard Drive and Time Machine no longer recognized
I recently downloaded the latest software update and upon rebooting the system to install the security update and whatever other update was included, my external hard drive which contains time machine is no longer recognized. I tried to use disk util
-
How to send image as a part of message rather than as an attachment
Dear All, I have to configure one scheduler job to send html message containing image. I went through couple of posts in the same thread list and I could send email but in all approaches image is being sent as attachment. Can somebody guide on how to
-
Is it possible to have a video loop while audio plays in a motion menu?
Hi! Here's the deal: I have a seamlesly looping 8 second video clip for my motion menu, but the audio file for that menu lasts 1 minute. For rendering time/disc space and bit budgeting purposes I would like to use the video file as a loop while the a
-
Problem in copying wagetype into IT0008 using Dynamic Action for IT0015
Hi All, My requirement is based on the Number/ Unit the user enters on the IT0015 screen in the PA30 transaction ,I have created a dynamicaction that will fetch the corresponding wage type from a table T511K and display the screen of IT0008 where the
-
[multithread] newbie here ... is inputStream shared?
Hi, a newbie here. I've been playing with java for six month now and it's been pretty fun. Looking forward to learn more about java from this forum. Now I have a question about this little project I've been doing. I'm currently developing a multi-thr