REPORT generating dilema SQL plus, SQL worksheet, SQL developer, when to yo
hi i am always generating report for my company into excel sheet..
and i encoutner a scenario where by i need to do a
BREAK ON col skip 1 command.
now i am wondering..
1) i am using sql developer to export the report into excel sheet everytime. and ihave tried using the break on col skip 1 command, it will not work on sql developer.
if i run it in a script [F5] i cannot export the data in excel..
2) if i use sql*plus to do the report, i wont not be able to see all the columns in 1 straight row..
even though i have set the linesize to the maximum..my tables has too many columns..
2nd , can sql*plus generate excel file?
3) what is the difference between sqlworksheet and sqlplus, does oracle10g still support sqlworksheet? i cant seem to find it in oracle10g
4) somehow i feel certain mechanism inside sqldeveloper sqlworksheet are the same of sqlplus,
anybody has a clue?
thats all 10s
SQL Worksheet is no longer supported.
The SQL Developer team are trying to make the worksheet in SQLDeveloper compatible with sqlplus, but they have some way to go.
SQL*Plus can't generate excel files directly, but you can use 'set colsep ,' to get a comma separated file of sorts.
The maximum linesize in sqlplus is 32767. Are you sure you need all that information in one line?
You may need to look at better report writers such as Apex or Oracle reports, or use MSQuery to pull the data directly into Excel.
Similar Messages
-
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. -
Kodo 3.0 generates invalid SQL statement when deleting an instance
Hi,
kodo 3.0 generates an invalid SQL statement when deleting an instance
that has a one-many inverse unidirectional association.
All manipulations of the data go just fine except for the deletion of
instances of Whole without Parts. Kodo 3.0 generates the following SQL
statement UPDATE PART SET WHERE PARTID= ?.
This problem does not occur when using a bidirectional relationship
between Whole and Part. Is there an error in the mapping file somewhere?
Thanks in advance,
Stijn
database schema
<table name="PART">
<column name="PARTID" type="bigint"/>
<fk to-table="WHOLE">
<join column="PARTID" to-column="WHOLEID"/>
</fk>
</table>
<table name="WHOLE">
<column name="WHOLEID" type="bigint"/>
</table>
classes
public class Whole implements javax.jdo.InstanceCallbacks{
private java.util.Set parts = new java.util.HashSet();
public void jdoPreDelete {
//implements cascading delete
public class Part implements javax.jdo.InstanceCallbacks{
private int partid;
mapping
<class name="Whole">
<field name="parts">
<jdbc-field-map type="one-many" column.PARTID="PARTID"
ref-column.WHOLEID="PARTID" table="PART"/>
</field>This bug is caused by the fact that your FK is using a column that is
not nullable (in this case, because it is also a PK column). It is
definitely a bug on our side, but I wanted to let our users know that
most one-sided one-many relations won't exhibit this problem.
Thank you for the report; we will try to correct the problem in an
upcoming release. -
Schedule Report in Oracle SQL Developer
Just wonder if Oracle SQL Developer has capability to setup a schedule to run reports automatically as Microsoft*SQL does.
Please advise.No, but its a feature request we see regularly. Check out the feature requests at http://SQLDeveloper.oracle.com.
-
GENERATING DOC - sql developer 1.5
hi guys,
i am encountering this problem..
i am only able to get TABLES and VIEWS when generating DB document..
I cant seems to get procedures/functions and stuff like that.
what could be wrong ? is there a log file for me to do some tracing ? where else can i ask except here?
Pls advice
Regards,
NoobPlease do not duplicate threads. You've asked the same thing in sql developer 1.5 - generate db doc
K. -
SQL Developer when launched gives me this...
Hello people of the oracle forum community. After spending over an hour on the phone with techincal support, one of the nice people finally explained to me that they couldn't help me due to not having a contract and directed me here. So here I am... I am sure my question is fairly simple to solve yet I am not sure what it is.
I am taking an Oracle class online via my local community college and I finally decided that it was time to load the program onto my own computer since the oracle server that they are using has locked all the students out of creating users, etc.(i.e. the chapter that I am currently on in my book).
My issue is this...when I launched SQL Developer it keeps telling me to enter a valid Java.exe file to continue. Has anyone encountered this before and if so how do I proceed with loading my normal SQL files into developer?
Thank you all for taking time to help me learn this software.Welcome to the forum!
Whenever you post provide your platform OS and version and the sql developer version.
>
when I launched SQL Developer it keeps telling me to enter a valid Java.exe file to continue.
>
Sql develeper requires a Java SDK to run and for the latest version you should use Java 1.6.xx.
What version of sql developer did you download? Do you have the correct JDK?
You can download sql developer from the main download page here
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
There are versions for all supported platforms, 32/64 bit and some include the JDK if you don't have the proper on.
>
Has anyone encountered this before and if so how do I proceed with loading my normal SQL files into developer?
>
Not sure what you mean by 'loading' your files. -
Reporting Functionality in SQL Developer?
Can someone explain to me the reporting capabilities of this tool?
Are there predefined logical design reports?
Are there predefined physical design reports?
I just dont see any predefined reporting fucntionality.
Thanks
MarkOK now I see that there are a few (like three) reports for the data side of things but I dont see any process level reports.
I am now reading all the help docs on reports...........
Are there any Process Model reports?
I am supprised that there arnt more caned reports in this tool.
Edited by: Mark_K on Jun 14, 2011 11:24 AM -
Reporting on the SQL generated by webI and Deski reports
I'm running BOXI 3.1 SP3 on a Windows. I have about 2800 Webi and Deski reports live. The majority of these reports return data from a Oracle data source that is not managed in-house.
I'm needing an admin type software that can query the repository for all my reports, generate the SQL for each report, spit out the name of the report and the SQL of the report and any filters/variables on the report into a searchable file that I can parse through to look for specific query filters (and report filters if it has any.)
I have method for pulling a list of reports that are using an universe's object X, but I really need a method of searching all the WHERE clauses all my reports and inside the report in the variables and
Does anybody know of anything that does this that is available for purchase? I've tried leveraging the Activity Universe and it's just too slow to use.Hi,
I am sorry but I could not infer much from your issue. However, vaguely I understand that you might have missed the grain settings for table A. Generally, when there are no proper grain settings (set through content tab in LTS), the BI Server might show NULL values.
You may want to revisit your LTS for these tables once again and running through level 5 log also might help here.
Hope this helps.
Thank you,
Dhar -
How to connect as different user in SQL Plus Worksheet in SQL Developer
This is driving me nuts! I have a script with different "CONNECT" commands to different schemas. What is the right synatx when using SQL Worksheet in SQL Developer when connecting to a different user? Greatly appreciate help on this. Thanks!
Which version of SQL Developer are you using? What syntax are you using?
Using SQL Developer 2.1.0.63.73, running selected statements as a script, I could get connect to work fine with the following examples:
connect
select user, global_name from global_name;
connect;
select user, global_name from global_name;
connect user/password@tnsalias
select user, global_name from global_name;
connect user/password@tnsalias;
select user, global_name from global_name;Unfortunately, even though the connect on it's own prompts for user, password and tns alias (and says a blank tns alias is the current connection), the following don't work:
connect user/password
select user, global_name from global_name;
connect user/password;
select user, global_name from global_name;Also note that the connection performed by this only exists while the script is being executed - only the script stops/ends the connection is disconnected.
theFurryOne -
Hi Experts,
I have a typical situation in the LAB environment. Hope some one helps. I have Installed a SCOM 2012 R2 with SQL 2012 SP1 in a single server (Management group 1). I have installed another management group on another server using this SQL server for its database
so i have everything going fine.
The first management group has its reporting installed in the SQL server. For the second i created a new named instance for that. But i cannot run the SCOM setup in the SQL server (Also holding the Management group 1 MS) as 1 st reporting is already there.
When i run the setup it is asking me to repair it. I don't get the install option so i can install the reporting for management group 2 in the named instance.
Default instance is being used by the 1st management group.
Can any one figure a possibility for installing 2 SCOM reporting services for different management groups in a same SQL 2012 server please.
Gautam.75801Hi Yan Li,
Thank you for the reply. So as you are aware If i need to instal reporting, i need to run the SCOM 2012 R2 setup in the SQL server and select reporting and select the
instance and then mention the management server there right. I am not getting that option there it is asking me to remove or repair the existing installation as there is already a SCOM entire setup including reporting there. As it is a lab there is no problem
in testing. I have 2 reporting instances. Any suggestions for me on how to overcome this issue and deploy the second reporting in the new named instance ?
Below is the screenshot of the error what i am talking about when i run SCOM 2012 R2 setup to install reporting in the SQL server
When i click on add feature reporting is greyed out (As already 1st management groups reporting is installed)
When i click on remove or repair it
uninstalls the existing one. But i want both SCOM 2012 r2 reporting to be there(For both Management group). Is it possible ? If yes What is the trick to run the setup ?
Gautam.75801 -
How to see data modeller reports in sql developer?
How to see data modeller reports in sql developer?
1) export your design to existing schema in Oracle database
2) define connection to that schema in SQL Developer
3) find "Data Modeler Reports" in reports window of SQL Developer - probably "design rules" are more interesting here
Philip -
SQL Developer user defined reports (appropriate utilization)
I have used SQL developer on a limited basis but I have never created a user defined report. Can someone compare and contrast the
types of user defined reports that can be created via SQL developer versus the types of user defined reports that can be created via
a tool such as Crystal Reports or similar tool.Hi user7753875 -
I agree with reidelme that it won't match the capabilities for fancy organisation/output of tools like Crystal Reports, but you can do interrelated parent/multiple child reports.
Check out the Reports tab on the SQL Developer Exchange for some examples of what other users have done with this.
Brian Jeffries
SQL Developer Team
Edited by: bjeffrie on Jun 3, 2011 5:01 PM
Turns out no one has used that in a long time. You will have to do some interpretive cut/past from xml given by web site & report editor in SQL Developer. Here is the "Who" report (master+2 child reports) from the exchange in a format you can use the import function from "User Defined Reports" on.
<?xml version="1.0" encoding="UTF-8" ?>
<displays>
<display id="57507b3a-0130-1000-8008-a9fec67b8254" type="" style="table" enable="true">
<name><![CDATA[Who]]></name>
<description><![CDATA[
A Report to show active seesion and some details about there activities. Includes 2 Child-reports for Active SQL and PID for the process supporting the session.
]]></description>
<tooltip><![CDATA[Who is logged in and what is he doing]]></tooltip>
<drillclass><![CDATA[null]]></drillclass>
<CustomValues>
</CustomValues>
<query>
<sql><![CDATA[SELECT sid, serial#, username, status, server, machine, program FROM v$session order by sid]]></sql>
</query>
<display id="null" type="Child" style="Table" enable="true">
<name><![CDATA[ActiveSQL]]></name>
<description><![CDATA[]]></description>
<tooltip><![CDATA[]]></tooltip>
<drillclass><![CDATA[null]]></drillclass>
<CustomValues>
<TYPE>null</TYPE>
</CustomValues>
<query>
<sql><![CDATA[select c.spid b1, b.osuser c1, b.username c2, b.sid b2, b.serial# b3, a.sql_text,b.status,to_char(b.logon_time, 'DD-MON-YYYY HH24:MI:SS') from v$sqltext a, v$session b, v$process c where a.address = b.sql_address and b.paddr = c.addr and a.hash_value = b.sql_hash_value and b.sid = :SID order by c.spid,a.hash_value,a.piece]]></sql>
<binds>
<bind id="SID">
<prompt><![CDATA[SID]]></prompt>
<tooltip><![CDATA[SID]]></tooltip>
<value><![CDATA[NULL_VALUE]]></value>
</bind>
</binds>
</query>
</display>
<display id="null" type="Child" style="Table" enable="true">
<name><![CDATA[Process]]></name>
<description><![CDATA[]]></description>
<tooltip><![CDATA[]]></tooltip>
<drillclass><![CDATA[null]]></drillclass>
<CustomValues>
<TYPE>null</TYPE>
</CustomValues>
<query>
<sql><![CDATA[select p.spid,p.addr,s.sid,s.server,p.username,s.osuser,p.program,t.value/1024/1024 PGA_Mb from v$process p,v$session s,v$sesstat t where p.addr=s.paddr and s.sid=t.sid and s.sid = :SID and t.statistic#=20]]></sql>
<binds>
<bind id="SID">
<prompt><![CDATA[SID]]></prompt>
<tooltip><![CDATA[SID]]></tooltip>
<value><![CDATA[NULL_VALUE]]></value>
</bind>
</binds>
</query>
</display>
</display>
</displays>
Edited by: bjeffrie on Jun 3, 2011 5:01 PM -
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 -
SYS_REFCURSOR in SQL Developer
Hello! I'm trying to execute function which returns sys_refcursor. Code is generated by Sql Developer Run command
DECLARE
P_DATE_FROM DATE;
P_DATE_TO DATE;
P_OUT_ERROR_CODE VARCHAR2(200);
v_Return SYS_REFCURSOR;
BEGIN
P_DATE_FROM := SYSDATE - 10;
P_DATE_TO := SYSDATE;
v_Return := MONITORING.GET_MONITORING_DATA(
P_DATE_FROM => P_DATE_FROM,
P_DATE_TO => P_DATE_TO,
P_OUT_ERROR_CODE => P_OUT_ERROR_CODE
:P_OUT_ERROR_CODE := P_OUT_ERROR_CODE;
:v_Return := v_Return; --<-- Cursor
END;
Function body:
FUNCTION get_monitoring_data
( p_date_from IN DATE
, p_date_to IN DATE
, p_out_error_code OUT VARCHAR2
RETURN SYS_REFCURSOR
IS
v_cursor SYS_REFCURSOR;
BEGIN
OPEN v_cursor FOR
SELECT * FROM person_case;
RETURN v_cursor;
END get_monitoring_data;
Unfortunately I'm receiving error every time:
ORA-06550: line 18, column 20:
PLS-00382: expression is of wrong type
Line 18 is: :v_Return := v_Return;
Everything works fine in VS Developer Tools and PL/SQL Developer
What I'm doing wrong? Thanks in advance!I don't use SQL Developer, though I'm sure it must have a way of handling ref cursors.
In SQL*Plus you would do something like...
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE
2 FUNCTION get_monitoring_data(p_date_from IN DATE
3 ,p_date_to IN DATE
4 ,p_out_error_code OUT VARCHAR2
5 ) RETURN SYS_REFCURSOR IS
6 v_cursor SYS_REFCURSOR;
7 BEGIN
8 OPEN v_cursor FOR
9 SELECT * FROM emp;
10 RETURN v_cursor;
11* END get_monitoring_data;
SQL> /
Function created.
SQL> var p_out_error_code varchar2;
SQL> var v_return refcursor;
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 P_DATE_FROM DATE;
3 P_DATE_TO DATE;
4 P_OUT_ERROR_CODE VARCHAR2(200);
5 v_Return SYS_REFCURSOR;
6 BEGIN
7 P_DATE_FROM := SYSDATE - 10;
8 P_DATE_TO := SYSDATE;
9 v_Return := GET_MONITORING_DATA(
10 P_DATE_FROM => P_DATE_FROM,
11 P_DATE_TO => P_DATE_TO,
12 P_OUT_ERROR_CODE => P_OUT_ERROR_CODE
13 );
14 :P_OUT_ERROR_CODE := P_OUT_ERROR_CODE;
15 :v_Return := v_Return;
16* END;
SQL> /
PL/SQL procedure successfully completed.
SQL> print v_return;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
14 rows selected.
SQL>So that SQL*Plus has the variables that the returned values are going to be bound to (the ones signified by the ":")
SQL Developer should have something similar I would guess to allow the returned values to be bound out so that it can then fetch and display the contents of the ref cursor itself. -
Online Migration using SQL developer
Hi All,
We are planning to migrate our production SQL server.2005 database to oracle 10g. If I use online migration using Oracle SQL Developer Tool to migrate data from SQL server 2005 to Oracle 10g, then will it migrate all those records that are inserted into SQL server 2005 LIVE database after the time when online migration process started?
For example let say the migration process started at 10:00 PM in the night and it found 200,00,000 records in transaction table, it will take 3-4 hours to migrate all of them to oracle, now during this migration time the LIVE SQL server database will still be getting new records, so will 200,00,000 plus newly inserted records will get migrated to Oracle 10g or only those which were initially counted when migration started?
Kindly advise!
Best Regards!
IrfanHi Irfan,
It sounds easy to find that out by a little test. I would expect that only those records will be transferred that are in the remote table at the moment when the migration started. Online data move uses COPY via the JDBC connection, as far as I know.
200,000,000 records and an online data move is a contradiction. From the manual:
Mode: Online causes the table data to be moved by SQL Developer when you have completed the necessary information in the wizard; Offline causes SQL Developer to generate scripts after you have completed the necessary information in the wizard, and you must later run those scripts if you want to move the data. (Online moves are convenient for moving small data sets; offline moves are useful for moving large volumes of data.)
If you are using offline data move, then you are using BCP to unload the data from the SQL Server database, and then the rules of BCP apply how the records are unloaded.
What are you trying to achieve? Do you want to keep the two databases in synch? Then a migration does not seem to me the best way. There are other products, like the Database Gateway for MS SQL Server, or the Golden Gate product.
Best regards
Wolfgang
Maybe you are looking for
-
Migration of Purchase Order History using RM06EEI1
Hi I have migrated Open Purchase Orders from one SAP system to another SAP system. I have loaded the Purchase Order details using business object BUS2012 and the PO History using program RM06EEI1. Only open quantities were loaded to facilitate subse
-
How do I transfer pictures, music, etc to another account on the same Macbook?
I needed to create another user on my MacBook, but am not sure how to transfer my pictures, music, etc from my other account to this one. Any ideas? Thanks!
-
How to wipe clean an iphone 3G.
-
I have just bought an airport time capsule and i am trying to install an airport utility programme to support this However, it seems the version 6 which came out last year - i can't use on my Mac - Snow Leopard - So tried to then install version 5.6.
-
Dear Experts, How can we write FOR loop in 7.0nw SP4. *WHEN Acct *IS "C" *FOR %YEAR%=2005 *FOR %MONTH%=JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC *REC(ACCOUNT="D",FACTOR=[Acct].[A], [TIME].[%YEAR%.%MONTH%] * [Acct].<b>, [TIME].[%YEAR%.%MONTH%]