How to view sys_context value in SQL Developer?
hello
i can view the results via sqlplus with following statements:
SELECT SYS_CONTEXT ('empno_ctx', 'empno_attrib') empno_attrib FROM DUAL;
SELECT * FROM SESSION_CONTEXT;
both retrieve correct values;
now, since i work mainly in SQL Developer i wanted to view the results in there as well;
i ran the procedure in SQL Developer via right-click on the procedure -> run;
it looked like it ran ok;
however when i do the above queries nothing is retrieved;
any suggestions?
thanks
rgds
Hi,
You can use
SELECT SYS_CONTEXT ('empno_ctx', 'empno_attrib') empno_attrib into <Variable Name> FROM DUAL;
dbms_output.putline (<Variable Name>
So after you execute the procedure. You will be able to see the value in output window.
Regards,
Kushal Gupta
Similar Messages
-
View CLOB data in SQL Developer
Hi,
Can anyone let me know how to view CLOB data in SQL Developer 2.1.
I am having images stored in a column of datatype CLOB. How to view this image.
Database is 10.2.0.4.Since SQL Developer has no idea about the type of data stored in LOB columns, one cannot view that content in desired format.
You need a tool to extract the LOB data and render it accordingly.
BTW, do you mean BLOB here? -
How to view database table in oracle9i developer
Hi,
how to view database table in oracle9i developer,any manual setting .please help me.
thanks
saran.Hi;
1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
2. Please see:
http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
Regard
Helios -
How to view alerlog contents using SQL?
How to view alertlog contents using SQL?
Hi,
Why don't you use the OEM Database Console ?? Now, in order to view the contents of the alert log file using a SELECT statement, you need to create a external table:
create or replace
directory background_dump_dest_dir
as '<your_oracle_home>/bdump';
CREATE table alert_log_external
(line varchar2(4000) )
ORGANIZATION EXTERNAL
(TYPE oracle_loader
DEFAULT DIRECTORY background_dump_dest_dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY newline
nobadfile
nologfile
nodiscardfile
FIELDS TERMINATED BY '#$~=ui$X'
MISSING FIELD VALUES ARE NULL
(line)
LOCATION ('alert_<sid_of your_database>.log') )
REJECT LIMIT UNLIMITED;Cheers -
How to show georaster RDTs in SQL developer 1.5 ?
Hi all,
I wonder how to properly set the latest SQL Developer (1.5 EA3) to show georaster RDTs in the connection / objects pane (left hand side pane) ?
My SQL Developer 1.5 EA3 does not show any RDT. While previous versions in my machine (version 1.2.1 and 1.1.3) have no problems in showing RDTs.
My platforms are :
* OS : MS Windows Vista Ultimate
* Oracle Database 11g Release 1 (11.1.0.6.0) Enterprise/Standard Edition for Microsoft Windows 32-bit
* JDK 1.6.0_06
Please advise,
=DamonThis is just a bug.I have logged bug #7025395
Sue -
How to Add Access Platform in SQL Developer 3.2.20.09
Though it was default in previous versions but I think it is not in this version. I have downloaded the latest copy of SQL Developer 3.2.20.09 from your site. While trying to migrate data from Access to Oracle using Migration Wizard (Tools>Migration>Migrate option) I am not getting any Access data in source database window. There are nothing under Available Source Platforms. Kindly let me know how to bring Access Platform in SQL Developer 3.2.20.09.
Hi,
Have you checked all the steps in the SQL*Developer documentation ?
Review the relevant sections of -
Oracle® SQL Developer User's Guide Release 3.2
2.2.4.3 Before Migrating From Microsoft Access
2.2.4.3.1 Creating Microsoft Access XML Files
2.2.8.1.3 Creating Data Files From MySQL
2.3 SQL Developer User Interface for Migration
2.3.1 Migration Submenu
Are you able to create a connection to an Access mdb file using the 'Connections' options ?
See -
5.21 Create/Edit/Select Database Connection
and the information under -
Access tab
If you can make a connection to the Access mdb file then you should be able to make the migration also by followingthe steps detailed in the documentation.
Regards,
Mike -
How To version a Schema in SQL Developer?
How To version a Schema in SQL Developer? Is there any open source tool for windows? I used a trial version of Source Control for Oracle by Red Gate. But i am looking for a free tool or way around? Like we do versioning in Jdeveloper?Any help in this regard would be much appreciated.
SQL Developer supports e.g. Subversion out of the box.
Open Sql Developer Help and search for "Versioning"
Using Versioning
SQL Developer provides integrated support for the Subversion and Git versioning and source control systems, and you can add support for other such systems as extensions by clicking Help, then Check for Updates. Available extensions include CVS (Concurrent Versions System) and Perforce.
This is the part about support for versioning. The next step would be how you organize your workflow so every source is available in your repository.
Maybe an online tutorial can help you: Using Source Code Control in Oracle SQL Developer 3.0
Regards
Marcus -
HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLY
hello i m new to sqldeveloper so plz dnt laugh if m asking silly question
HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLYUse the 'pin' on your table editor
http://www.thatjeffsmith.com/archive/2011/11/sql-developer-quick-tip-pin-query-result-sets-and-plans/
Then open your 2nd table. If you want to see both at the same time, right-click on the table editor tab and select 'New Editor Tab Group'
Not a silly question, but no need to shout :) -
How to view refcursor value in pl/sql
Hi,
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
i have one stored procedure like this
CREATE OR REPLACE PROCEDURE PRCURRENCYEDIT
CURRENCYCODE TBLCURRENCY.FLDCURRENCYCODE%TYPE,
CV1 OUT SYS_REFCURSOR
IS
BEGIN
OPEN CV1 FOR
SELECT FLDCURRENCYCODE,
FLDCURRENCYNAME,
FLDCURRENCYSYMBOL,
FLDPREFIXSYMBOL,
FLDEXCHANGERATE
FROM TBLCURRENCY
WHERE FLDCURRENCYCODE = CURRENCYCODE ;
END ;
i want to view the value for cv_1 ..
Thanks in advance
Regards
AriffThanks for the reply
But i have one problem with this stored procedure
PROCEDURE PRCURRENCYSEARCH
CURRENCYNAME IN NVARCHAR2 DEFAULT NULL ,
BATCHNUMBER IN NUMBER DEFAULT NULL ,
BATCHSIZE IN NUMBER DEFAULT NULL ,
RESULTCOUNT OUT NUMBER,
TOTALPAGECOUNT OUT NUMBER,
CV_1 OUT SYS_REFCURSOR
IS
V_ROWFROM NUMBER(19,0) ;
V_CURRENCYNAME TBLCURRENCY.FLDCURRENCYNAME%TYPE ;
BEGIN
V_CURRENCYNAME := NVL(CURRENCYNAME, '') || '%';
INSERT INTO GTT_CURRENCY
( FLDCURRENCYCODE )
SELECT FLDCURRENCYCODE
FROM TBLCURRENCY
WHERE (CURRENCYNAME = '%'
OR FLDCURRENCYNAME LIKE '%currencyname' )
ORDER BY FLDCURRENCYNAME ;
RESULTCOUNT := SQL%ROWCOUNT;
TOTALPAGECOUNT := FNTOTALPAGECOUNT(RESULTCOUNT, BATCHSIZE);
V_ROWFROM := FNROWFROM(BATCHNUMBER, BATCHSIZE);
OPEN CV_1 FOR
SELECT * FROM
( SELECT R.FLDCURRENCYCODE, C.FLDCURRENCYNAME
FROM GTT_CURRENCY R
JOIN TBLCURRENCY C
ON R.FLDCURRENCYCODE = C.FLDCURRENCYCODE
WHERE R.FLDROWNUMBER > V_ROWFROM
ORDER BY R.FLDROWNUMBER )
WHERE ROWNUM <= BATCHSIZE ;
END ;
when i execute this code using this code
DECLARE
CURR_CUR TBLCURRENCY%ROWTYPE;
CV1 SYS_REFCURSOR;
V1 NUMBER;
V2 NUMBER;
BEGIN
PRCURRENCYSEARCH('INR',NULL,1,V1,V2,CV1);
LOOP
FETCH CV1 INTO CURR_CUR;
EXIT WHEN CV1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(V1);
DBMS_OUTPUT.PUT_LINE(V2);
DBMS_OUTPUT.PUT_LINE(CURR_CUR.FLDCURRENCYCODE||' '||CURR_cUR.FLDROWNUMBER);
END LOOP;
END;
after execution,the following error occurs
DECLARE
ERROR at line 1:
ORA-06504: PL/SQL: Return types of Result Set variables or query do not match
ORA-06512: at line 9
Note:
desc tblcurrency
Name Null? Type
FLDCURRENCYCODE NOT NULL NUMBER
FLDCURRENCYNAME NOT NULL NVARCHAR2(100)
FLDCURRENCYSYMBOL NOT NULL NVARCHAR2(50)
FLDPREFIXSYMBOL NOT NULL NUMBER
FLDEXCHANGERATE NOT NULL NUMBER(18,6)
Thanks in advance
Regards
ariff -
How to view cursor values while in DEBUG mode
I am using SQL developer 1.5.1 and I am debugging my Stored Procedure.
I cannot find how to view the contents of variables as I step through the code.
For example, I have the following IF:
IF NVL(rat_rec.rat_css_agency_cd, -1) != NVL(lclcssagencycd, -1) THEN
lclupdate := TRUE;
END IF;
I want to be able to see what is the value of rat_rec.rat_css_agency_cd and also lclcssagencycd, to see why it is evaluating this IF statement to be true.
In other words it is saying rat_rec.rat_css_agency_cd is NOT the same as lclcssagencycd, but I want to see what the differences are and need to be able to 'look' at the value of each variable.
It is NOT showing on SMART DATA or DATA.
I have not used SQL Developer much before, so must be missing something.
(In VB, I can debug a routine and then stop on a variable and press SHIFT+F9 to see the contents of the fields. I want to do the same thing in SQL DEVELOPER).Yes, I do.
I am able to step through the code and if I stop on a particular line of code, I want to be able to evaluate the variables or cursor fields that I am on to see what their contents are.
Sean -
How to get these settings in sql developer
as per this link, when I selected my rows in sql developer am not getting any of the options shown in the screen shot of the link,
my sql developer is Version 3.2.20.09 windows 64 bit, to use this options do I need to do any settings?
http://www.thatjeffsmith.com/archive/2013/02/how-to-copy-only-column-headers-from-query-results-in-oracle-sql-developer?
when I highlight and right click am getting only
a) Save Grid as report
b) Single record view
c) count rows
d) FInd/highlight
e) ExportOnce you have identified the desired column headings by highlighting one or more related data cells in the results grid, position your cursor over any column heading and right-click to get the context menu shown in Jeff Smith's blog.
-
How to change NLS parameters in SQL Developer?
I think that Oracle National Language Support is quite confusing. How can I easily change NLS parameters for SQL Developer (for all connections) to match exactly those that my database is using?
Hello,
SELECT 5/8 x FROM dual;F9 -> 0.625
Change decimal separator in preferences
F9 -> 0,625
It is different when I execute a query/script with F5, then I always get 0.625
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS .,
SELECT 5/8 x FROM dual;
X
0.625
Change settings
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS ,.
SELECT 5/8 x FROM dual;
X
0.625Even changing the settings with ALTER SESSION makes no difference
ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.';
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS ,.
SELECT 5/8 x FROM dual;
X
0.625
ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,';
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS .,
SELECT 5/8 x FROM dual;
X
0.625It seems the script output does not care about my settings :-(
Regards
Marcus -
Can't display MS SQL datetime value in SQL Developer 1.5.1
Hi All,
I try to select the datetime value from MS SQL Server and the SQL Developer display strange value like this:
oracle.sql.TIMESTAMP@f37160
The problem does not exists in the previous version. And any body can help to solve it?
Thanks.ISSUE CLARIFICATION
====================
Attempting to view records in a table from a MS SQL Server 2005 schema. All fields are ok, except
the datetime fields.
Getting Oracle.sql.date@E4F4012
This worked (actually still works) with SQL Developer 1.2.1. In fact, I see both on my screen and
1.2.1 views the fields fine, 1.5.4 does not.
ISSUE VERIFICATION
===================
Verified the issue by the screen shots
DATA COLLECTED
===============
SCREEN SHOTS
SR6930954.994_SQLDeveloper.ppt
CAUSE DETERMINATION
====================
Missing option in SQL Server 2005 default datatype mapping rules.
CAUSE JUSTIFICATION
====================
Note 458294.1
Bug 6360558 / Bug 6378114
PROPOSED SOLUTION(S)
======================
use the workaround provided in Note: 458294.1
PROPOSED SOLUTION JUSTIFICATION(S)
====================================
Note 458294.1
Bug 6360558 / Bug 6378114
SOLUTION / ACTION PLAN
=======================
You can use the following workaround if you want SQL Server 2005 DATETIME datatype map to Oracle DATE:
- On the Captured Model, select 'Set Data Mapping'
- Click on Apply in the 'Set Data Map' Window, this will create a record in the Repository
- Open a connection with the Repository database
- Click on Tables
- Click on table MIGR_DATATYPE_TRANSFORM_RULE
- Click on the "Data" Tab
- Sort on column "SOURCE_DATA_TYPE_NAME"
- Look for "DATETIME"
- Change the value of column "TARGET_DATA_TYPE_NAME" from TIMESTAMP to DATE
- Change the value of column "TARGET_SCALE" from 6 to (null)
- Commit the change.
Remark: This workaround is only suitable if the repository contains only 1 captured model, otherwise we need to identify the proper MAP_ID.
KNOWLEDGE CONTENT
=================
Platform / Port Specific? = NO
Knowledge content not created because the following note already addresses this issue: Note.458294.1
This problem has been identified as a bug. And it has been fixed in Version 2.0.0 (Future Release)
For available workaround refer to the above tags and NOTE: 458294.1
Regards,
Srikanth
Oracle Support Services.
Currently Support is not having any information of the release date for sql developer V2.0.0
Regards,
Srikanth -
Viewing CLOB data in sql developer
In SQL Developer 1.1, if CLOB data was returned from a query, you could place your mouse over the column and get most of it.
But in 1.2, all you get is "(CLOB) <some data> ...", and nothing else. Is there something I need to set?You should look in the SQL Developer forum. I think your question is answered here:
How to view the entire CLOB in results table?
Regards Nigel -
View .erd files in SQL Developer
Hi,
I was given an .erd file that was created in TOAD. I have SQL Developer, and I haven't figured out how to view the file. Do I need a different tool? I do not have the ability to get TOAD, so I will need something else to view these files.
Any ideas?
Thanks!Pretty sure erd is a proprietary format from TOAD, not some open standard as pdf is.
So find the ability to get TOAD, or throw away the file and start over in another tool.
Have fun,
K.
Maybe you are looking for
-
I was wondering if anybody knows how to set up the Blackberry 9550 to be used as a fax/modem from my laptop computer. I am not sure if it is possible to do this, I believe I can do it. Let me know if I have to get some other software for my phone o
-
I can select a rating and a color label for my images, but I can not sort by rating and color label. when I click on the filter drop down, color label is not one of the options. how do I get both ratings and color lables as an option to sort with.
-
Hi all, I need to set up authorization checks within a BSP application but I'm not really sure how to do this in detail. Would it be the best way to create new authorization objects and user roles? Or would it fit to manage user rights with simple cu
-
My itunes was working and I don't know what happened but I cannot re-install it again.
My itunes was working and I don't know what happened but I cannot re-install it again.
-
Safari shuts down randomly.
Over the past few weeks, my Safari has been shutting down randomly. When I open it back up, no error screen or anything shows up, and it just brings me back to my start page. I've updated all of my software (although I don't have Mountain Lion [I don