How to use ICROleObject to run SetOleLocation
I am trying to located what library ICROleObject is found in. I want to use SetOleLocation to send a Word Document or an Excel Spreadsheet to a report section.
I have found an example on Business Objects DevLibrary:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
cOLEObj.SetOleLocation App.Path & "\res\SampleExcel1.xls"
cOLEObj.Height = 1800
cOLEObj.Width = 5791
But I cannot find any information on how to declare or use the cOLEObj
After googling, I found that it should be declared as ICROleObject
I cannot find this Interface in any of the libraries. I cannot find any documentation how to use this.
Can anyone please give me an example or point me where to find how to add a OLE Object into a Report.
This must be done in .Net, not in the designer. I am dynamically adding sections and objects into this report,
so it must be dynamically added into a section.
To add a picture, I am using this and it works great, but I also need to be able to add Word Docs and PDF's into a report
boPictureObject = boReportClientDocument.ReportDefController.ReportObjectController.ImportPicture( _
strImportFileName, boSection, 1, 1)
Thank you,
Jeff
After talking with a Crystal Support tech, it turns out this feature does not work. It sure would be nice if they got this working.
Jeff
Similar Messages
-
How to use pool connection run oracle procedure?
Hi, All:
I am facing a difficulty I can not find the solution. Maybe you can help
me.
I want to call an oracle stored procedure whenever I talk to datebase to
make the application more efficient. I was able to run the procedure using
oracle thin driver but not the connection pool using Weblogic jDriver for
JDBC2.0.
Please check the following code and see what I did wrong:
The code in JSP file in Weblogic:
<%-- JSP page directive --%>
<%@ page
import="java.io.*,java.util.*,java.sql.*,weblogic.common.*,weblogic.jdbc20.c
ommon.*" %>
<%-- JSP Declaration --%>
<%!
protected Connection con = null;
ResultSet rset = null;
%>
<%-- JSP Scriptlet --%>
<% try {
Properties props = new Properties();
props.setProperty("user", "james");
props.setProperty("password", "aimjames");
Driver myDriver =
(Driver) Class.forName
("weblogic.jdbc.pool.Driver").newInstance();
con = myDriver.connect("jdbc:weblogic:pool:hdj2Pool", props);
String userid = (String)session.getAttribute("user.id");
int subid =
Integer.parseInt((String)session.getAttribute("sub.id"));
String query = "begin pkg_select.sel_req_in_001(" + userid +
", " + subid + ", ?); end;";
weblogic.jdbc.common.OracleCallableStatement cstmt =
(weblogic.jdbc.common.OracleCallableStatement)con.prepareCall(query);
cstmt.registerOutParameter(1,java.sql.Types.OTHER);
cstmt.execute();
rset = cstmt.getResultSet(1);
When I run this JSP file, the compilation is fine but the result shows
nothing. That's means I can not get the ResultSet for some reason.
The working file when I use oracle thin driver (NOT use a connection pool):
String userid = (String)session.getAttribute("user.id");
int subid = Integer.parseInt((String)session.getAttribute("sub.id"));
String query = "begin pkg_select.sel_req_in_001(" + userid +", " +subid
+", ?); end ";
CallableStatement cstmt = con.prepareCall(query);
cstmt.registerOutParameter(1,OracleTypes.CURSOR);
cstmt.execute();
ResultSet rset = (ResultSet)cstmt.getObject(1);
You may notice that I am trying to bind a parameter to an Oracle cursor. Is
there anything I did wrong in using weblogic API? I just want to let you
that in the weblogic JSP file, I also tried to use
weblogic.jdbc.oci.CallableStatement and
weblogic.jdbc20.oci.CallableStatement instead of
weblogic.jdbc.common.OracleCallableStatement, but none of them seems work.
I did check the bea site at
http://www.weblogic.com/docs51/classdocs/API_joci.html#1080420 for the
example to use:
cstmt.registerOutParameter(1,java.sql.Types.OTHER);
and I think I followed the exact procedure the example did.
Please help!
James Lee
Artificial Intelligence in Medicine, Inc.
2 Berkeley Street, Suite 403
Toronto, Ontario M5A 2W3
Tel: 416-594-9393 ext. 223
Fax: 416-594-2420
Email: [email protected]
Joseph
Thanks for the suggestion about latest version of Weblogic Server.
"coding best-practices" is not mentioned in the post.
In order to make servlet application run significantly faster, my servet how to use connection poo is much moreresonable?
It is reasonable to expect servlet to run significantly faster with connection pooling.
Is it true that geting and close a connection whenever
one time database access finished?
Already answered. Applications use a connection from the pool then return it when finished using the connection.
Will the solution affect the servlet performance?
Yes. Already answered. Connection pooling enhances performance by eliminating the costly task of creating database connections for the application.
Is there any official document to introduce connection pool program?
For the latest version
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13726/toc.htm
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13737/jdbc_datasources.htm#insertedID0 -
When using a DLL I'm supposed to use javah on my class file, for creation of a C headerfile. How's this done in JDeveloper?
JDeveloper doesn't include a wizard for this. You can run setvars.bat from the JDeveloper\Bin directory from a command prompt and that will set up your path and CLASSPATH for using the command line tools.
You can then run the javah command directly to generate the header files to use when creating your C/C++ JNI code.
Take Care,
Rob
null -
Question: how to use JAVAEE to run the WAP program of mobile phone on web?
I want to develop a web program by JAVAEE. It uses the simulator of mobile phone to run the WAP program of mobile phone on web. You can operate the program on the page just as do on mobile phone. tell me how to develop on details soon. show the code, please.
Haha, there's no way in hell you can do that. And nobody in their right mind would write the code for you, at least for free.
Jesus with you people these days..."Java_Researcher". I bet you've never written a single line of Java. -
How to use DBMS_JOB to run the OWB scripts?
Can anyone pls explain how I can use the DBMS_JOB to run the scripts which are generated by OWB.
SuroopCREATE OR REPLACE PACKAGE "LOAD_DATAMART"
AS
TYPE t_global IS RECORD
( plsql_map VARCHAR2(50) := 'transactions_map_exp', -- Default mapping plsql program
plsql_map_main VARCHAR2(50) := 'transactions_map_exp.main', -- Default mapping plsql main program
servers NUMBER(2) := 19, -- Default concurrent loading servers
max_reloads NUMBER(3) := 3 , -- Default maximum load retrys
mail_sender VARCHAR2(99) := '"Certegy Data Warehouse"', -- Default Mail Sender
mail_notice VARCHAR2(99) := '[email protected]', -- Default Recepient Notification
mail_error VARCHAR2(99) := '[email protected]' -- Default Recepient for Errors.
GLOBAL t_global ;
PROCEDURE start_monitor_load(p_date IN DATE);
PROCEDURE monitor_load( p_date IN DATE , p_dwh_load# IN NUMBER DEFAULT NULL, p_servers IN NUMBER DEFAULT GLOBAL.servers );
PROCEDURE start_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs IN VARCHAR2);
PROCEDURE create_job_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs VARCHAR2 DEFAULT 'batch01_rbs' );
FUNCTION dependency_on(p_type IN VARCHAR2, p_date IN DATE) RETURN BOOLEAN;
PROCEDURE send_mail (p_sender IN VARCHAR2, p_recipient IN VARCHAR2, p_subject IN VARCHAR2, p_message IN VARCHAR2);
PROCEDURE start_load_guard;
PROCEDURE load_guard(p_job IN INTEGER);
END load_datamart;
CREATE OR REPLACE PACKAGE BODY "LOAD_DATAMART"
AS
PROCEDURE start_monitor_load(p_date IN DATE) IS
v_plsql VARCHAR2(32000);
BEGIN
v_plsql := 'load_datamart.monitor_load(to_date('''||TO_CHAR(p_date,'DD-MON-YYYY HH24:MI:SS')||''',''DD-MON-YYYY HH24:MI:SS''));';
EXECUTE IMMEDIATE 'declare v_job integer; begin dbms_job.submit(v_job,:v_plsql); end;'
USING v_plsql;
END start_monitor_load;
PROCEDURE monitor_load( p_date IN DATE, p_dwh_load# IN NUMBER DEFAULT NULL , p_servers IN NUMBER DEFAULT GLOBAL.servers ) IS
TYPE t_server IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
v_server t_server;
v_dwh_load# NUMBER;
v_reload_limit NUMBER := 0;
v_plsql_error VARCHAR2(32000);
pending_jobs BOOLEAN;
p_batch VARCHAR2(20) := 'batch01_rbs';
FUNCTION job_server_running(p_dwh_load_seq NUMBER) RETURN BOOLEAN IS
CURSOR c1 IS SELECT * FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#
AND load_seq = p_dwh_load_seq;
r1 c1%ROWTYPE;
PROCEDURE try_resubmit_job(p_dwh_load_seq OUT NUMBER) IS
v_load_seq NUMBER;
BEGIN
SELECT COUNT(*) INTO v_load_seq
FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_Load#;
IF v_load_seq < v_reload_limit THEN
INSERT INTO DWH_LOAD_DETAIL(dwh_load#,load_seq,load_server,plsql_map,map_parameters)
VALUES(v_dwh_load#,v_load_seq+1,0,r1.plsql_map,r1.map_parameters||'| SEQ '||v_load_seq);
COMMIT;
ELSE
RAISE_APPLICATION_ERROR(-20000,'Maximum '||v_reload_limit||' retrys reached, load aborted.');
END IF;
END;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%NOTFOUND THEN
RETURN FALSE;
ELSIF c1%FOUND AND r1.job_end_time IS NULL THEN
RETURN TRUE;
ELSIF c1%FOUND AND r1.job_end_time IS NOT NULL THEN
IF r1.job_end_time = 'BROKEN' THEN
try_resubmit_job(r1.load_seq); -- Oracle Errors
END IF;
RETURN FALSE;
END IF;
CLOSE c1;
END job_server_running;
FUNCTION get_next_load_seq(p_dwh_load_server IN NUMBER) RETURN NUMBER IS
CURSOR c1 IS SELECT * FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#
AND load_server = 0
ORDER BY dwh_load#,load_seq
FOR UPDATE OF load_server;
r1 c1%ROWTYPE;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%FOUND THEN
UPDATE DWH_LOAD_DETAIL
SET load_server = p_dwh_load_server
WHERE CURRENT OF c1;
END IF;
CLOSE c1;
COMMIT;
RETURN r1.load_seq;
END get_next_load_seq;
BEGIN
v_dwh_load# := p_dwh_load#;
-- Defining the Max Retry to load
SELECT COUNT(*) + GLOBAL.max_reloads INTO v_reload_limit
FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#;
FOR i IN 1..99 LOOP
v_server(i) := NULL;
END LOOP;
LOOP
pending_jobs := FALSE;
FOR i IN 1..p_servers LOOP
IF NOT job_server_running(v_server(i)) THEN
v_server(i) := get_next_load_seq(i);
IF v_server(i) IS NOT NULL THEN
load_datamart.create_job_load(v_dwh_load#,v_server(i),p_batch);
IF p_batch = 'batch01_rbs' THEN
p_batch :='batch02_rbs';
ELSIF p_batch = 'batch02_rbs' THEN
p_batch :='batch03_rbs';
ELSIF p_batch = 'batch03_rbs' THEN
p_batch :='batch01_rbs';
END IF;
END IF;
END IF;
IF v_server(i) IS NOT NULL THEN
pending_jobs := TRUE;
END IF;
END LOOP;
EXIT WHEN NOT pending_jobs;
dbms_lock.sleep(05);
END LOOP;
COMMIT;
UPDATE DWH_LOAD_HEADER
SET plsql_error = 'Completed'
WHERE dwh_load# = v_dwh_load#;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_plsql_error := SUBSTR(SQLERRM,1,4000);
load_datamart.send_mail(load_datamart.GLOBAL.mail_sender,load_datamart.GLOBAL.mail_error,
'Load Datamart - Load '||TO_CHAR(p_date,'MM/DD/YYYY HH24:MI:SS')||' not completed',
v_plsql_error||CHR(10)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13)||
'- Parameter Date '||TO_CHAR(p_date,'MM/DD/YYYY')||CHR(13)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13)||
'- Transmission time '||TO_CHAR(p_date,'hh24:mi:ss')||CHR(13)||
'- Load Seq# '||TO_CHAR(v_dwh_load#)||CHR(13)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13));
v_plsql_error := SUBSTR(SQLERRM,1,4000);
UPDATE DWH_LOAD_HEADER
SET plsql_error = v_plsql_error
WHERE dwh_load# = v_dwh_load#;
COMMIT;
RAISE_APPLICATION_ERROR(-20000,v_plsql_error);
END monitor_load;
PROCEDURE start_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs IN VARCHAR2) IS
v_plsql_map VARCHAR2(200);
v_sqlerrm VARCHAR2(4000);
BEGIN
UPDATE DWH_LOAD_DETAIL
SET job_start_date = TRUNC(SYSDATE) ,
job_start_time = TO_CHAR(SYSDATE,'HH24:MI:SS')
WHERE dwh_load# = p_dwh_load#
AND load_seq = p_load_seq
RETURN plsql_map INTO v_plsql_map;
COMMIT;
EXECUTE IMMEDIATE 'set transaction use rollback segment '||p_rbs;
v_plsql_map := 'begin '||v_plsql_map||' end;';
EXECUTE IMMEDIATE v_plsql_map;
EXECUTE IMMEDIATE 'begin
UPDATE DWH_LOAD_DETAIL
SET job_end_date = SYSDATE,
job_end_time = TO_CHAR(SYSDATE,''HH24:MI:SS''),
rta_iid = '||global.plsql_map||'.get_runtime_audit_id,
rta_select = '||global.plsql_map||'.get_selected,
rta_update = '||global.plsql_map||'.get_updated,
rta_insert = '||global.plsql_map||'.get_inserted,
rta_errors = '||global.plsql_map||'.get_errors,
rta_delete = '||global.plsql_map||'.get_deleted
WHERE dwh_load# = :p_dwh_load#
AND load_seq = :p_load_seq;
UPDATE DWH_LOAD_HEADER
SET rows_inserted = NVL(rows_inserted,0) + NVL('||global.plsql_map||'.get_inserted,0)
WHERE dwh_load# = :p_dwh_load#;
END;' using p_dwh_Load#,p_load_seq;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_sqlerrm := SUBSTR(SQLERRM,1,3999);
EXECUTE IMMEDIATE ' begin
UPDATE DWH_LOAD_DETAIL
SET job_end_date = SYSDATE,
job_end_time = ''BROKEN'',
rta_iid = '||global.plsql_map||'.get_runtime_audit_id,
rta_select = '||global.plsql_map||'.get_selected,
rta_update = '||global.plsql_map||'.get_updated,
rta_insert = '||global.plsql_map||'.get_inserted,
rta_errors = '||global.plsql_map||'.get_errors,
rta_delete = '||global.plsql_map||'.get_deleted,
plsql_error = :v_sqlerrm
WHERE dwh_load# = :p_dwh_load#
AND load_seq = :p_load_seq;
UPDATE DWH_LOAD_HEADER
SET rows_inserted = NVL(rows_inserted,0) + NVL('||global.plsql_map||'.get_inserted,0)
WHERE dwh_load# = :p_dwh_load#;
END; ' using v_sqlerrm, p_dwh_load#,p_load_seq;
COMMIT;
END start_load;
PROCEDURE create_job_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs VARCHAR2 DEFAULT 'batch01_rbs' ) IS
p_job INTEGER;
v_date DATE;
BEGIN
-- Submitting Job Load
DBMS_JOB.SUBMIT(p_job,'load_datamart.start_load('||p_dwh_load#||','||p_load_seq||','||''''||p_rbs||''');');
COMMIT;
END create_job_load;
FUNCTION dependency_on(p_type IN VARCHAR2, p_date IN DATE) RETURN BOOLEAN IS
CURSOR c1 IS SELECT * FROM DWH_DATA_LOADS
WHERE data_type = p_type
AND file_date >= TRUNC(p_date);
r1 c1%ROWTYPE;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%FOUND AND r1.status = 'Done' THEN
RETURN FALSE;
END IF;
CLOSE c1;
RETURN TRUE;
END;
PROCEDURE send_mail (p_sender IN VARCHAR2,
p_recipient IN VARCHAR2,
p_subject IN VARCHAR2,
p_message IN VARCHAR2) IS
* This procedure is usefull for sending e-mails for single or multiples recipients up to 50 *
* the limitation is Lotes Notes e-mail service. *
* Lewis Cunnigham Package is good also for massive distribuition to multiples e-mails, *
v_mailhost VARCHAR2(30) := '172.27.2.157'; -- Titan and Eagle available SMTP service, through the GATEWAY
v_mailhost VARCHAR2(30) := 'STPMTA1ML'; old one
v_mailhost VARCHAR2(30) := 'stpnh1ml'; Main SMTP, all other are replicated, not available.
v_mailhost VARCHAR2(30) := 'STPMS6ML'; Replicated server, not available.
v_mail_conn utl_smtp.connection;
v_crlf VARCHAR2(2) DEFAULT CHR(13)||CHR(10);
v_date VARCHAR2(255) DEFAULT TO_CHAR( SYSDATE, 'MM/DD/YYYY hh24:mi AM' ); -- Lotus Notes default format.
--pragma autonomous_transaction;
PROCEDURE writeData( p_text IN VARCHAR2 ) AS
BEGIN
IF ( p_text IS NOT NULL ) THEN
utl_smtp.write_data( v_mail_conn, p_text || v_crlf );
END IF;
END;
BEGIN
v_mail_conn := utl_smtp.open_connection(v_mailhost, 25); -- Default port
utl_smtp.helo(v_mail_conn, v_mailhost);
utl_smtp.mail(v_mail_conn, p_sender);
utl_smtp.rcpt(v_mail_conn, p_recipient);
utl_smtp.open_data(v_mail_conn);
writeData( 'To: '|| p_recipient ); -- Redundant, but necessary to complete format
writeData( 'From: ' || p_sender); -- Redundant, but necessary to complete format
writeData( 'Date: ' || v_date ); -- Database completion time
writeData( 'Subject: ' || NVL( p_subject , '(no subject) ' ) ); -- Default Subject
--writeData( 'Content-Type: text/html');
utl_smtp.write_data(v_mail_conn, '' || v_crlf );
utl_smtp.write_data(v_mail_conn, p_message ); -- Message body
utl_smtp.close_data(v_mail_conn );
utl_smtp.quit(v_mail_conn);
--commit;
EXCEPTION WHEN OTHERS THEN null; Since we are just sending e-mails,
-- We don't care about mail errors like when server down, only when needed.
END;
PROCEDURE start_load_guard IS
v_job INTEGER;
BEGIN
DBMS_JOB.SUBMIT(v_job,'load_datamart.load_guard(100);',SYSDATE+100);
DBMS_JOB.CHANGE(v_job,'load_datamart.load_guard('||v_job||');',SYSDATE,'sysdate+((1/60)*1/24)');
COMMIT;
END start_load_guard;
PROCEDURE load_guard(p_job IN INTEGER) IS
v_job INTEGER;
CURSOR c1 IS SELECT * FROM DWH_DATA_LOADS
WHERE file_date BETWEEN TRUNC(SYSDATE) AND TRUNC(SYSDATE)+(86399/86400);
did_PAYC_load BOOLEAN := NULL;
did_ARMS_load BOOLEAN := NULL;
did_CLMS_load BOOLEAN := NULL;
did_STAT_load BOOLEAN := NULL;
did_TRAN_load BOOLEAN := NULL;
did_VCOM_load BOOLEAN := NULL;
did_BCRD_load BOOLEAN := NULL;
did_PNET_load BOOLEAN := NULL;
BEGIN
FOR i IN c1 LOOP
NULL;
--if i.status in ('Ready','Done') then
--if i.data_type = 'PAYC' then
END LOOP;
IF NOT ( SYSDATE >= TO_DATE(TO_CHAR(SYSDATE,'DD-MON-YYYY')||' 13:35:00','DD-MON-YYYY HH24:MI:SS') )THEN
send_mail('"Load Datamart"','[email protected]','I am the guard','This is my body messaje at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')||'.');
ELSE
send_mail('"Load Datamart"','[email protected]','I am the guard, this is the last message.','This is my body messaje at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')||'.');
DBMS_JOB.SUBMIT(v_job,'begin dbms_job.next_date('||p_job||',to_date('''||TO_CHAR(SYSDATE+1,'DD-MON-YYYY')||' 03'||''',''DD-MON-YYYY HH24'')); commit; exception when others then null; end;',TRUNC(SYSDATE));
END IF;
COMMIT;
EXCEPTION WHEN OTHERS THEN
load_datamart.send_mail('"Load Datamart"','[email protected]','I am the guard, I break at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS'),SQLERRM);
END load_guard;
END load_datamart; -
How to use IPad to run IMac Remotely?
How do we use our I Pad to run proclaim worship program remotely from the stage through our I Mac in a church service. We have two VGA projectors that run the slide and the sound is run through the sound board. The iMac and soundboard are in the back of the worship center.
ms have a free remote desktop app
and there are teamviewer and a long line of other vnc and remote desktop clients in apps tore -
How to use OEM to run a script against many targets and send result by emai
Is there a way to use OEM to query the RMAN backup against many targets (databases) and have all the results send to you by a single email?
The script is :
SELECT a.instance_name, b.session_key, b.session_recid, b.session_stamp, b.command_id,
b.status, b.start_time, b.time_taken_display, b.input_type,
b.output_device_type, b.input_bytes_display, b.output_bytes_display,
b.output_bytes_per_sec_display
FROM
v$instance a, V$RMAN_BACKUP_JOB_DETAILS b WHERE ( b.start_time > (SYSDATE - 30) ) order
by b.start_time
Thanks.Are you using a RMAN catalog? If not, you can used UDM's (this will be messy w/o a RMAN catalog) for what you want to do.
What I started out doing was....
You can create a UDM and push that UDM out to the targets you want. The problem with UDM's, is you can only pull 1 or 2values. I started down this same path and wrote a sql to concatenate the data into one value, such as
SELECT '|'||input_type||'|'||status||'|'||start_time||'|'||end_time||'|'||ROUND(elapsed_seconds,2)||'|'||time_taken_display||'|'
FROM v$rman_backup_job_details
WHERE (INPUT_TYPE, START_TIME)
IN
( SELECT input_type, MAX(START_TIME)
FROM v$rman_backup_job_details
GROUP BY INPUT_TYPE
AND INPUT_TYPE = 'DB FULL';
Do not put any warning/critical thresholds in the UDM and just let OEM Agent gather the data and pull it back into the SYSMAN repository.
You can then look at this view, SYSMAN. MGMT$METRIC_DETAILS to find the correct SQL to pull out the data you need. This view is made up of a 4 way union between 4 sql's. Once you find the SQL you need, then you can pull this information out and into a custom table of your own.
Once you have data into another table, you will then have to extract the concatenated string out, parse it out and report on it. This is where I stopped and said there has to be a better way.
I then thought about it and the RMAN catalog has all this, assuming you are using a RMAN Catalog.
I wrote a piece of dynamic sql to loop through the rman catalog to pull this out into a historical table and store the data. Then I can report on it from there. If you have a RMAN catalog, this works much better.
I also use UDM's to use OEM as a data extract tool to pull the number of archivelogs and bytes my databases create on an hourly basis. I pull 2 values, bytes and # of logs. So this works well with UDM's, don't have to concatenate a bunch of values and then parse it back out again.
I push this UDM to all databases, and have it run hourly. Then daily, I extract this information into a custom table and then use analytic functions to determine how much space is needed on the db servers for archivelogs for a 24 hour time frame. This helps with sizing our log destinations and gives us legitimate reports for Storage teams.
I can also build reports on how many archive logs are generated on a daily, weekly, monthly basis per database. Good for analysis and charge back methods. -
How to use BYDATE to run a procedure on a given list of dates ..?
Hi all,
Our client has a meeting schedule and he needs a report prior to every meeting. He had sent us the meeting dates and my manager asked me to schedule a job in the database to run prior to his meeting so that we can get him the report on time. Now I have to schedule a job which should be executed on the dates he has given. I tried to configure the BYDATE parameter in dbms_scheduler.create_schedule but its giving me an error. My database is Oracle 10g R1 and OS is Solaris 9.
select * from V$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bi
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for Solaris: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
select PLATFORM_NAME from v$database;
PLATFORM_NAME
Solaris[tm] OE (64-bit)
BEGIN
dbms_scheduler.create_schedule (
schedule_name => 'CLIENT_REPORT_JOB',
repeat_interval => 'FREQ=DAILY;BYDATE=20080912,20080913',
comments => 'Client Report');
END;
ERROR at line 1:
ORA-27412: repeat interval contains invalid keyword: BYDATE
ORA-06512: at "SYS.DBMS_ISCHED", line 595
ORA-06512: at "SYS.DBMS_SCHEDULER", line 1045
ORA-06512: at line 2
Can someone help me, please...?
Thanks in advance.
Regards,
FlameThrowerHi,
Many of the Scheduler Calendar enhancements were introduced in 10gR2. Since you are using 10gR1 you should check the Scheduler documentation for 10gR1 to see if BYDATE is supported in that release (I don't think it is).
If it isn't, as a workaround, you can use a PL/SQL date function which has the list of dates hardcoded in it and returns the next applicable date.
Hope this helps,
Ravi. -
how to use airport time capsule on a dell portable pc with windows 7 taking in consideration that time machine doesn't run with Windows ?
TM does not work like that.
If you want files to use later.. do not use TM.
Or do not use TM to the same location. Plug a USB drive into the computer and use that as the target for the permanent backup.
Read some details of how TM works so you understand what it will do.
http://pondini.org/TM/Works.html
Use a clone or different software for a permanent backup.
http://pondini.org/TM/Clones.html
How to use TC
http://pondini.org/TM/Time_Capsule.html
This is helpful.. particularly Q3.
Why you don't want to use TM.
Q20 here. http://pondini.org/TM/FAQ.html -
I presently use iCloud and run a laptop PC plus an iPad2 and an iPhone 4. I plan to travel and want to take my netbook, rather than the laptop PC for travelling. How do I get my apple tools to work mwith a new, temporary PC?
ayorico15 wrote:
It's not the pictures I'm worried about. I can get them off my phone without iTunes.
You can export ONLY Camera Roll photos and videos.
ayorico15 wrote:
All my apps were downloaded from my new apple ID. Not his.
Sign in to iTunes Store (on desktop itunes) with your ID. Plug your iphone to itunes, right click on it and choose transfer purchases.Right click again and choose backup. Then you can sync with iTunes.
ayorico15 wrote:
It's not the pictures I'm worried about. It's all my saved conversations
Your conversations will not deleted if you sync with your iTunes.
What is the problem with iCloud? iCloud has nothing to do with iTunes syncing. -
How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.
Well if there is a EFI block, then running a program in OS X isn't going to do a lick of good.
After all EFI was designed for Trusted Computing and Digital Rights Management, to act between the OS and hardware, can read drives, contact the Internet and everything.
Windows doesn't use EFI, will have UEFI in Windows 8 though. -
How to use RTE? I need to run my CVI code on a SBC that has its OS on CompactFlash (CF). I have done the Build»Distributions command and made a cds file but don't know if I did it correctly. I have downloaded and installed CVI RTE on my desktop PC, but what to do next to get my CVI code on my SBC's CF? The CF has WindowsEmbedded and so it has the usual Windows folders. So what files do I load on the CF and where do they go?
Help please! And thanks in advance!
Solved!
Go to Solution.John,
I dont know a huge amount about deploying to windows embedded targets, but I would assume you would just install the RTE like you would any other program, then throw the distribution wherever you like to run it from.
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments
Regards,
Kyle M.
Applications Engineering
National Instruments -
I'm currently using a pc running windows xp which is no longer supported. how can I easily move my iTunes library to a PC running Windows 8.1
Yes. For how:
How to move your iTunes library to a new computer - Apple Support -
How to use connection pool of datasource to make applications run faster?
Hi, erveryone
I prepare to implement a servlet that access database and do sync with client.
When I access database, I would like to configure a datasource in weblogic and use connection pool.
In order to make servlet application run significantly faster, my servet how to use connection poo is much moreresonable?
For example, my servlet has many times database access. Is it true that geting and close a connection whenever
one time database access finished?
If from the servlet begins, the db connection is hold till servlet finalize. Will the solution affect the servlet performance? Is there any official document to introduce connection pool program? I search some documents.
<The Java EE 6Tutorial> introduce some simple intruduction about connection pool.1. Use WebLogic Servers Data Source for Database Connections.
2. Open and close the connections where you need it. Dont open it in begin and close in finalise. That is bad practice.
3. Even when you invoke Connection.close () webLogic will not close the connection. it will commit the transaction and return it back to the pool rather than physically closing the DB connection.
4. You can tune data source for minimum, maximum and increments of connections that you need based on your application requirement. -
How can I boot and run my Mac Mini on my 12" PwrBk display using firewire?
How can I boot and run my Mac Mini on my 12" PwrBk display using firewire?
bwhit:
Welcome to Apple Discussions.
No reason why you should not be able to do it using Firewire Target Disk Mode. Here's what you do:
1. With both computers shut down connect both via firewire.
2. Startup the Mini and hold down "T" key immediately after chime.
3. Startup the PB and immediately after chime hold down Option key.
4. Select second HDD icon on the screen and click on the right pointing arrow.
5. Computer will boot from Mini's HDD.
Be sure to shut down PB completely before shutting down Mini.
Please do post back with an update or with further questions or comments.
Cheers
cornelius
Maybe you are looking for
-
I have the Bejeweled Blitz app (for Facebooik) on my iPod Touch 4th gen. If I want to find gems (special items used in Bejeweled) I have to use a browser (I'm using Atomic Browser) on my iPod so I can grab gems from Facebook's news feed. What's SUP
-
How do you join a jabber chat room with a password?
In the latest released version of Messages is it possible to join a Jabber/XMPP chat room that requires a password? - Jim
-
Problem in adding a new element having attribute & many children for XML(jd
I m creating a new element <row id="1" > & many childrens & similar new elements with increment id are created. And this is added to a tag 'data' But after creating when i m iterating thru' the elements of the node 'data', for the new elements which
-
I have Acrobat 6.0 Professional installed on my PC (Vista-64) and after the last FF update, it will no longer open or allow me to view pdfs. "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser. Please exit Acr
-
Acrobat 7 open file locations issue
Using Adobe Acrobat 7. When trying to open the file from a drive the message, "There was an error opening this document. Path does not exist." appears. I can open it fine from the C:. None of the other drives show under File/Open. Using Windows 7