How to get an output of server in SQL Developer
I learn to SQL Deverloper and use it in an academic setting and Oracle at Oracle test cases.
I know my way around SQL some but I am learning just PL/SQL. I want to run an anonymous block and get an output for elements 'dbms_output.put_line '.
At school, I enter my block in the worksheet "SQL" and will receive the "anonymous block finished" in the screen "output of the Script. Then, there is a 3 screen, whose name I don't remember, but I think it's the equivalent of 'out of server. When I open it, I have to tell him what database I use. So I see the dbms output lines in this section 3.
The problem is when I'm with SQL Developer to work, I see only 2 sections: "SQL worksheet" and "output of the Script.
I looked, but couldn't find an option or a button or a window that is called something like 'exit from server' or 'view output server.'
Can a more experienced user please help me?
I use:
SQL Developer Version 3.1.07
Build a HAND - 07.42
Linux x 86-64
(Oracle internal):
Instance: http://celalnx38.us.oracle.com:10507 /
tnsnames: 10500)
ROFL! So I went back and looked at it again, just to be sure... and I found the DBMS OUTPUT on the VIEW menu. LARGE as LIFE, but I've never SEEN it it is before...
Tags: Database
Similar Questions
-
One for the era: how to get this output using REGULAR EXPRESSIONS?
How to get the bottom of output using REGULAR EXPRESSIONS?
Published by: user12240205 on June 18, 2012 03:19SQL> ed Wrote file afiedt.buf 1* CREATE TABLE cus___addresses (full_address VARCHAR2(200 BYTE)) SQL> / Table created. SQL> PROMPT Address Format is: House #/Housename, street, City, Zip Code, COUNTRY House #/Housename, street, City, Zip Code, COUNTRY SQL> INSERT INTO cus___addresses VALUES('1, 3rd street, Lansing, MI 49001, USA'); 1 row created. SQL> INSERT INTO cus___addresses VALUES('3B, fifth street, Clinton, OK 74103, USA'); 1 row created. SQL> INSERT INTO cus___addresses VALUES('Rose Villa, Stanton Grove, Murray, TN 37183, USA'); 1 row created. SQL> SELECT * FROM cus___addresses; FULL_ADDRESS ---------------------------------------------------------------------------------------------------- 1, 3rd street, Lansing, MI 49001, USA 3B, fifth street, Clinton, OK 74103, USA Rose Villa, Stanton Grove, Murray, TN 37183, USA SQL> The REG EXP query shouLd output the ZIP codes: i.e. 49001, 74103, 37183 in 3 rows.
/* Formatted on 2012/06/18 17:25 (Formatter Plus v4.8.8) */ SELECT REGEXP_SUBSTR ((REGEXP_SUBSTR (full_address, '[^,]+', 1, 4)), '[[:digit:]]+') RESULT FROM cus___addresses
-
How to get the output of a compiled solution?
I'm writing an automation, but I'm unable to get the output of devenv, but receive nothing. I have reduced my example considerably.
I have a lot of files that looks like this
"B:\Microsoft Visual Studio 9.0\Common7\IDE\devenv" "My_Types\My_Types.sln" /build >... \Output\Build.txt
And it produces Build.txt
Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. All rights reserved.
-Build started: project: Rotair_Types, Configuration: Debug Any CPU.
Rotair_Types-> C:\IntuitiveDev\Bin\Rotair_Types.dll
= Build: 1 succeeded or up-to-date, 0 failed, 0 was ignored.So now, I try to do it from code:
Compile = new Process()
With Compile.StartInfo
. UseShellExecute = False
. RedirectStandardOutput = True
. FileName = "b:\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
. Arguments = "/build" «C:\Code\Projects\My_Types\My_Types.sln»»»
Ends with
bSuccess = Compile.Start)
strOutput = Compile.StandardOutput.ReadToEnd)
Compile.WaitForExit)But strOutput is an empty string. This is confirmed by the issuance of the following at the command prompt:
/build "C:\Code\Projects\My_Types\My_Types.sln" "b:\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
But it does not compile because I can remove the dll, and it returns. I would get the result to determine if the compilation is successful. Any suggestions?
JM
Hello
Your question is addressed in these forums of consumers.
The MSDN Developer forums should be able to answer your question.
Issues related to the overall development of the Windows Desktop:
https://social.msdn.Microsoft.com/forums/en-us/home?category=windowsdesktopdev
Concerning
-
Don't know how to test the output of the PL/SQL function
I have a function in the package '. " XCCC_PO_APPROVALLIST_S1' called 'does_cpa_exist ':
The pl/sql valid and commits OK in TOAD.FUNCTION does_cpa_exist( p_document_id IN NUMBER ) RETURN BOOLEAN IS l_cpa_exists VARCHAR2(100); BEGIN SELECT 'Y' INTO l_cpa_exists FROM po.po_requisition_lines_all prla , ap.ap_suppliers pv , ap.ap_supplier_sites_all pvsa WHERE prla.vendor_id = pv.vendor_id AND prla.vendor_site_id = pvsa.vendor_site_id AND pv.vendor_id = pvsa.vendor_id AND prla.requisition_header_id = p_document_id AND EXISTS( SELECT pha.vendor_id FROM po.po_headers_all pha WHERE pv.vendor_id = pha.vendor_id AND pvsa.vendor_site_id = pha.vendor_site_id AND pha.org_id = fnd_profile.VALUE('ORG_ID') AND pha.type_lookup_code = 'CONTRACT' AND pha.authorization_status = 'APPROVED'); RETURN TRUE; IF (p_document_id IS NULL) THEN RETURN FALSE; END IF; EXCEPTION WHEN OTHERS THEN RETURN FALSE; END does_cpa_exist;
I ran the sql in the EBS, and took the path of the workflow looks like that function returned a value of false.
I pass to the function a document_id.
I was wondering how I might test the output of the function from TOAD?
I tried:
But get errors:select XCCC_PO_APPROVALLIST_S1.does_cpa_exist(1017934) from dual;
I do probably bad 101 things here, but I would still ask thinking and risk of being shouted at.ORA-06552: PL/SQL: Statement ignored ORA-06553: PLS-382: expression is of wrong type
Any advice appreciated,
Thank youI was wondering how I might test the output of the function from TOAD?
Try
begin if xccc_po_approvallist_s1.does_cpa_exist (1017934) then dbms_output.put_line ('True'); else dbms_output.put_line ('False'); end if; end; /
-
How to connect to microsoft sql server with sql developer 4.1 2014
Hello
Please,
I need to connect to a Microsoft SQL Server 2014 with SQL Developer 4.1 database, I installed the appropriate jdbc driver microsoft as having the active tab for SQL Server and to add the connection.
Thank you very much
We support no migration of SQL Server 2014, but you should be able to connect. There is a problem around tables in the connection of the navigation tree, but you should be able to execute queries and PROBABLY get a migration project going.
-
How to get 2 out of procedure with sql dynamic param?
Hello
following my other question on the treatment in the ranks, so that I did a procedure defined ranges for the table I want to deal with;
I did another procedure to obtain a particular range for treatment and that's where I have a problem;
My data are:
{
CREATE THE TABLE PRECUBE. TEST_STG_TMO_RANGES
(
NUMBER OF GLASS FIBER,
MIN_RID VARCHAR2 (18 BYTE),
MAX_RID VARCHAR2 (18 BYTE)
)
tablespace UTI_DAT;
Insert into TEST_STG_TMO_RANGES (GRP, MIN_RID, MAX_RID) values (0, 'AABKSxAAEAACW3pAAA', 'AABKSxAAEAADqCICcQ');
Insert into TEST_STG_TMO_RANGES (GRP, MIN_RID, MAX_RID) values (1, "AABKSxAAEAADqCJAAA", "AABKSxAAEAAD + wICcQ");
Insert into TEST_STG_TMO_RANGES (GRP, MIN_RID, MAX_RID) values (2, ' AABKSxAAEAAD/QJAAA', 'AABKSxAAEAAECyICcQ');
Insert into TEST_STG_TMO_RANGES (GRP, MIN_RID, MAX_RID) values (3, 'AABKSxAAEAAEFQJAAA', 'AABKSxAAEAAEL8ICcQ');
Insert into TEST_STG_TMO_RANGES (GRP, MIN_RID, MAX_RID) values (4, 'AABKSxAAEAAEMSJAAA', 'AABKSxAAEAAEPwICcQ');
}
my package:
{
create or replace
PACKAGE C_UTI_BASIC AS
procedure P_GET_RANGE (table_owner_in in varchar2
TABLE_NAME_IN in varchar2
range_no number
Min_RANGE_OUT OUT varchar2
max_range_OUT OUT varchar2
);END C_UTI_BASIC;
}
My procedure:
{
procedure P_GET_RANGE (TABLE_OWNER_IN in varchar2
TABLE_NAME_IN in varchar2
RANGE_NO number
MIN_RANGE_OUT OUT varchar2
MAX_RANGE_OUT OUT varchar2
)
isDDL_STATEMENT varchar2 (4000);
Start
DDL_STATEMENT: ='select MIN_RID, MAX_RID in MIN_RANGE_OUT, MAX_RANGE_OUT in '. TABLE_OWNER_IN |'. ' || TABLE_NAME_IN | "_RANGES where PRV =' | RANGE_NO;immediately run DDL_STATEMENT;
DBMS_OUTPUT. PUT_LINE (DDL_STATEMENT);
DBMS_OUTPUT. Put_line ('Min_RANGE_OUT :'||) Min_RANGE_OUT);
DBMS_OUTPUT. Put_line ('max_range_OUT :'|| max_range_OUT);
end P_GET_RANGE;}
I tried to call the procedure with:
{
declare
V_MIN_RANGE_OUT varchar2 (30);
v_Max_RANGE_OUT varchar2 (30);
Start
C_UTI_BASIC. P_GET_RANGE (TABLE_OWNER_IN = > 'PRECUBE')
, TABLE_NAME_IN = > 'TEST_STG_TMO '.
, RANGE_NO = > '4'
, MIN_RANGE_OUT = > V_MIN_RANGE_OUT
, MAX_RANGE_OUT = > v_Max_RANGE_OUT
);
end;
}
but it ends with the error:
Error report:
ORA-06510: PL/SQL: not supported by the user-defined exception
ORA-06512: at "DWH_ADMIN. C_UTI_BASIC', line 2331
ORA-00905: lack of keyword
ORA-06512: at line 5
06510 00000 - "PL/SQL: not supported by the user-defined exception.
* Cause: A user-defined exception has been raised by PL/SQL code, but
not been processed.
* Action: Fix the problem that causes the exception or write an exception
Manager for this condition. Or you may have to contact your
Director of application or DBA.
When I jump the "run immediately" just to see what is output through DBMS output here it is:
{
Select MIN_RID, MAX_RID in MIN_RANGE_OUT, PRECUBE MAX_RANGE_OUT. TEST_STG_TMO_RANGES where PRV = 4
Min_RANGE_OUT:
max_range_OUT:
}
the select statmetent seems OK for me, but the parameters are not met and have the value null;
I would appreicate advice on where I went wrong here and how achieve a correct output
THS
Rgds
Rgds
Outside the use of SQL statements cr@p Dynamics (i.e. DML and not the DDL as implied by your code) and your total lack of variable bind...
And that is your problem. Your dynamic instruction seeks to select VARIABLES that are out of reach of the dynamic statement itself. The IN such statements should be part of the EXECUTE IMMEDIATE for example
EXECUTE IMMEDIATE ddl_statement INTO min_range_out, max_range_out;
-
How can I connect sql server in sql developer?
Greetings to all.
I m using SQL Developer, I want to connect to SQL Server n it and migrate data from SQL Server to Oracle 10 g. When click on recover Databaser its give me the following error: -.
"Status: Doctor-I/O Error: failure of the SSO: library Native SSPI has not loaded." Check the system java.library.path property. »
Please guide me.
AlamFor me, it worked only when I did this: I
1 - Download and open the JTDS folder.
2 - ntlmauth.dll you will find in the folder x 86/SSO
3 - JtdsXA.dll, you will find in the folder x 86/XA
4 - put the ntlmauth.ddl and the JtdsXA.dll inside Sql Developer/sqldeveloper/bin
5 copy the jtds - 1.2.4.jar to Sql Developer/sqldeveloper/libIt worked for me.
-
OUTPUT OF DBMS FOR SQL DEVELOPER
Hello people,
Could someone help me please by allowing the release of DBMS with sql developer. Even when I run any anonymous block, function, or procedure I do not receive the output displayed as "Block PL/SQL executed successfully" or value of return etc. I use "ORACLE SQL DEVELOPER 1.5.5" Editor. Y at - he said something that we would need to do at the time of the installation itself. Please let me know your opinion on this. Thanks in advance
The 1.5.5 version is very old. Highly recommend the upgrade to the current production version 4.0.3 to Oracle SQL Developer downloads
If you must stay with 1.5.5, then something like
Set serveroutput on
Start
dbms_output.put_line (999);
end;
running in the spreadsheet product out in the tab out of the Script very well. Get out tab out DBMS, however, does not always work. Note the first icon in the toolbar of DBMS output is supposed to toggle serveroutput on / off. And with the action to perform for a procedure or function sends the dbms_output operation - log tab in the same pane on the Message tab.
-
How to create a new connection on oracle sql developer
Hello
I was installed oracle sql program in windows after installation I tried to create a new connection, but I get the error message: the account is locked.
Oracle dba must install for this connection or else.i was developer sql only oracle installed on my windows machine.
Thanks and greetings
PrabhakarThe account is locked at the database level and Developer SQL cannot get around that.
You must have dba privileges to unblock, but this isn't a problem SQL Developer.
-
How to get rid of LexBce Server print spooler Dependencies tab
I uninstalled the old Lemark printer using uninstaller for it, however, I now have an error 1068: the dependency service or group could not start when I try to install a new printer. When I ran services.msc and went to the print spooler element, I noticed that the service has appeared as "automatic". While they inspected again under
the Dependencies tab, the following is still listed: LexBce Server. I do not know which refers to Lexmark how do I remove it? And then what to do next?
Get to a prompt command as follows:
Click Start, run and enter in the box:
cmd
Click OK to open a command prompt window.
Run this command to see the current Spooler Service dependencies:
sc qc spooler
You can't really 'delete' the dependence of Lexmark, so tell you just the Spooler Service depend on that remote procedure call (RPC) service (this is the default value).
To do this, enter the following command:
the sc config spooler depend = rpcss
Be sure to include the space after the "equal" sign, or the command does not work.
Query the spooler to be sure Service again it works then:
sc qc spooler
XR | GetServiceConfig SUCCESS
Service_Name: Spooler
TYPE: 110 WIN32_OWN_PROCESS (interactive)
STARTUP TYPE: 2 AUTO_START
ERROR_CONTROL: 1 NORMAL
BINARY_PATH_NAME: C:\WINDOWS\system32\spoolsv.exe
LOAD_ORDER_GROUP: SpoolerGroup
TAG : 0
Display_name: Print spooler
DEPENDENCIES: rpcss
SERVICE_START_NAME: LocalSystem -
How to get oa PG.xml Server page files.
Hello
I need to make some changes on a page of OA. When I looked up the page I couldn't find it in the location of the Web interface of the server. There is in fact no PG.xml for all pages. Please let me know how to import these files into my local desktop of the server.
I use R12.0.6 instance and Jdev 10 RUP6 with the extension of the OA.
Kindly do the needful.
Kind regards
PrakashPrakash
What you need to do is to customize the page and add the new field through customization. Then, you must extend the controller to save the results in the custom table.
I hope I'm clear!
Thank you
AJ -
How to get an output of a plsql table?
Hi Experts,
I have a package which, once executed gets data in a plsql table.
I want to store these data in a custom table.
How can I do this?
Thank you
PSThis?
SQL> create table temp 2 as 3 select * from emp where 1 = 2 4 / Table created. SQL> define p_empno=7788 SQL> SQL> declare 2 type emp_record is table of emp%rowtype; 3 4 emp_rec emp_record; 5 begin 6 select * bulk collect into emp_rec from emp where empno = &p_empno; 7 for i in 1 ..emp_rec.count loop 8 insert into temp values emp_rec(i); 9 end loop; 10 end; 11 / old 6: select * bulk collect into emp_rec from emp where empno = &p_empno; new 6: select * bulk collect into emp_rec from emp where empno = 7788; PL/SQL procedure successfully completed. SQL> SQL> select empno, ename from temp 2 / EMPNO ENAME ---------- ---------- 7788 SCOTT
-
How to get back my proxy server?
Used Malware remover. Now, says I do not have any Proxy Server. Help.
Can be Malware remover removed the Proxy setting, add your proxy settings
- Firefox Menu > Options
- Advanced > network > connection
- Firefox Menu > Options
-
How to get two outputs at the same time?
Hello
I use the PCIe6351 DAQ card to generate two signals separately. This product has two exits, so I thought that I can use both at the same time, but when I run the code it gives an error: "the spesified resource is reserved. I just want to know if it is possible for me to use both outputs together at the same time or not? If so, would you please guide me what should I do to solve the problem?
Thank you very much
Soran
Great! This works. I appreciate your help
-
How to get the RA media server password in Windows 7
When I bought, after I have install windows 7 now for something in the installation he wonder about ra media server password, plese help if you have an answer for this mine was vista Home premium.
See if this thread is useful:
http://social.answers.Microsoft.com/forums/en-us/w7security/thread/4ddb919f-9A2A-4017-b825-88d66cc7b7b0
"RA Media Server Administrator Password".
Maybe you are looking for
-
HP Mini p/n FT315UA #ABA: Windows password unknown
My sister gave me an old HP Mini laptop. She can't remember the Windows password. After three tries, I get the following message: Password check failed Fatal error... System stopped CNU84671CD Thanks for your help. Mary
-
After the loading of barbie, equestrian club, his game is ok but the screen is black and doesn't let me do anything
-
can I put a 'not activated' version of XP to Windows 7?
I recently installed on the OEM of XP version on an old laptop to see if it (the cell) worked and something that children can use. I of course can't activate the version of XP, but she wondered if I upgraded to windows 7, would this work? Put anoth
-
Unable to connect wireless even though we have the right key wireless.
Wireless We have an acer one happy and we can connect to the internet by cable, but although we have to correct wireless code, we can not connect to wireless. Our other laptop works fine with the same code. Please can you help me?
-
Thing annoying Tablet handwriting recognition
Ive just installed a Tablet Wacom on Windows 7 and a really annoying pop - up window of handwriting recognition appeared. How can I get rid of this annoying tablet functionality. I tried to hit the Red Cross but he landed it right next to the screen.