for the archive sequence # generated two days back
What is point of view? script to check the archives (sequence #) generated two days back and are applied in settlement by then delete?Hello..
I guess it would make on primary: -.
select THREAD#, SEQUENCE#,COMPLETION_TIME,APPLIED,DELETED from V$ARCHIVED_LOG where completion_time between '31-OCT-09' and '02-NOV-09'
[http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1016.htm#REFRN30011]
[http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1035245]
NOTE:-change according to your need.
HTH
Anand
Published by: Anand... November 2, 2009 10:48
Tags: Database
Similar Questions
-
Find the archive logs generated per day (for 7.3.4 database)?
I use a query like the one below to determine the average amount archives logs generated per day for a database for a month:
Select sum (GB_USED_PER_DAY) count (GB_USED_PER_DAY) in (SELECT
To_char(completion_time,'YYYY-mm-DD') completion_date,
round (SUM (block_size *(blocks+1)) / 1024 / 1024 / 1024, 2) GB_USED_PER_DAY
V $ archived_log
WHEN TRUNC (completion_time) BETWEEN
TRUNC(SYSDATE-30) AND TRUNC (SYSDATE)
GROUP OF TO_CHAR(completion_time,'YYYY-MM-DD')
order by 1 desc);
This query does not work on Oracle 7.3.4 database. Anyone know how I can calculate average archive generation of newspapers per day for Oracle 7.3.4?
Thanks in advance!Select substr(first_time,1,8), round (sum (bytes) /(1024*1024)) MB of v$ log group by substr (first_time, 1, 8);
-
For the second time in two months, all my messages in the Inbox are not there. Only the SUBJECT and the FROM is left.
Tried to 'fix this folder' and ALL - lost ALL the Inbox.
The file is still there and works well...
How can I stop it and what are the causes?
Thank you all, Gabe
If you have the file somewhere on your hard drive, export and import tools it will be important back to Thunderbird.
https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/
Instructions http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html
-
Any trail version is there for the DPS App generator... ?
Any trail version is there for the DPS App generator... ?
Hi Pradeep,
You can register a test of this new product of Digital Publishing Solution at http://www.adobe.com/go/dps , which will allow the use of the web version of App Builder for 30 days. There is no trial available for the previous product in Digital Publishing Suite.
Neil
-
15 seconds for the archiving of newspapers is acceptable?
Version: 11.2.0.3
Platform: RHEL 5.4
3-node RAC
DB in ARCHIVELOG mode
Question1
============
As you can see below sometimes it takes up to 15 seconds for the archiving of recovery logs.
Online redo log switch happens fast however. It takes less than 2 seconds (maybe not fast enough for you guys)
Is this acceptable?
Question2.--- Log archiving is slow SQL> set timing on SQL> alter system archive log current; System altered. Elapsed: 00:00:11.08 SQL> SQL> SQL> alter system archive log current; System altered. Elapsed: 00:00:10.77 SQL> alter system archive log current; System altered. Elapsed: 00:00:15.06 SQL> SQL> -- But log switching is fast ! SQL> alter system switch logfile; System altered. Elapsed: 00:00:01.89 SQL> alter system switch logfile; System altered. Elapsed: 00:00:00.21
=========
For a database in archivelog mode, ALTER SYSTEM ARCHIVE LOG CURRENT and ALTER SYSTEM SWITCH LOGFILE have the same effect. Right? I mean, these two commands request the process archiving to archive the ENT which is currently written to. right?It's fast enough, as long as you don't fill all redo it online until you have completed check-in first. This is a round robin, so if you get all the way around to the first which is still more archived, everything stops until it is done.
The ALTER SYSTEM ARCHIVE LOG CURRENT expected archiver finish archiving, is slower than ALTER SYSTEM SWITCH LOGFILE, perhaps very much so with the largest and redo.
-
Looking for Windows 7 since Windows updates for the better part of 2 days
After the Dell with Windows Vista Home Premium 32 upgrade and buy and install again purchase the download of the software Empire Windows 7 os, I have been instructed to download all updates for 7. In doing so, the computer just keeps looking (for the better part of 2 days). All updates would be nonexistent after the upgrade. There are no more updates to have, now that it is almost obsolete. The person of Microsoft, with which I spoke told me to do this upgrade, and then I would be eligible to get 10 free Windows since the computer is able to handle.
Please run the Windows Update Troubleshooter:
http://go.Microsoft.com/?linkid=9830262Please provide the exact details of any problem it reports as not fixed.
-
How can I get the lines for the date between 2 different days
Hi all,
How can I get the lines for the date between 2 different days.
Sample data:
Table name: Articles
Title start_date end_date
Heading1 08-22-2011 2011-09-11
2011-08-01-2011-09-01 Title2
Title 3 2011-08-21 08-21-2011
title4 2011-08-28 2011-09-11
Result will be:
Title start_date end_date
Heading1 08-22-2011 2011-09-11
2011-08-01-2011-09-01 Title2
title4 2011-08-28 2011-09-11
This is my example query:
SELECT * FROM items WHERE trunc (es.date_start) > = TO_DATE('2011-08-22', 'YYYY-MM-DD') AND trunc (es.date_end) < = TO_DATE ('2011-08-28', 'YYYY-MM-DD')
but I can not get the expected results. Any help would be much appreciated.
Thanks in advancenot read your question properly before...
Please try this
Select * FROM items
WHERE (TO_DATE ('2011-08-22', 'YYYY-MM-DD') between TRUNC (es.date_start))
AND TRUNC (es.date_end)) OR
(TO_DATE ('2011-08-28', 'YYYY-MM-DD') between TRUNC (es.date_start))
AND TRUNC (es.date_end)) -
Table for the archiving of payroll process
Hello
I need the table in which the data for the archiving of payroll process.Payroll Archive Information going in the table "PAY_ACTION_INFORMATION".
Important points about this table:
1. when the value of the "ACTION_CONTEXT_TYPE" column is "PA" then the line stores level the payroll information and the corresponding ACTION_CONTEXT_ID is the 'PAYROLL_ACTION_ID' of the archiver payroll run. Note that 'PAYROLL_ACTION_ID' is the primary key of the PAY_PAYROLL_ACTIONS2. when the value of the "ACTION_CONTEXT_TYPE" column is "AAP" then the line stores level assignment information and the corresponding ACTION_CONTEXT_ID is the 'ASSIGNMENT_ACTION_ID' of the archiver for the assignment. Note that 'ASSIGNMENT_ACTION_ID' is the primary key of the table "PAY_ASSIGNMENT_ACTIONS".
The following query to retrieve all the information archived for a particular run for a particular assignment:
SELECT pai.*
FROM: pai pay_action_information,
pay_payroll_actions App,
pay_assignment_actions AAP
WHERE ppa.request_id =: request_id
AND ppa.payroll_action_id = paa.payroll_action_id
AND paa.assignment_id = pai.assignment_id
AND paa.assignment_action_id = pai.action_context_id
AND pai.action_context_type = 'PAA '.
AND pai.assignment_id =: assignment_idThe following query to retrieve all the information level pay pertaining to a particular race.
SELECT pai.*
FROM: pai pay_action_information,
pay_payroll_actions App
WHERE ppa.request_id =: request_id
AND ppa.payroll_action_id = pai.action_context_id
AND pai.action_context_type = 'PA '.Please note that for 'Year end archiver' information is stored in FF_ARCHIVE_ITEMS
-
How to write a query for the data exchange between two columns?
How to write a query for the data exchange between two columns?
I tried a request, does NOT work.
Thank you.update tmp t1 set t1.m1=t1.m2 and t1.m2=(select t2.m1 from tmp t2 where t2.student_id = t1.student_id)
Published by: user533361 on October 23, 2009 14:04Just plain and simple:
update tmp t1 set t1.m1=t1.m2, t1.m2=t1.m1 /
SY.
-
Best location for the archived redo logs
Hello
I am OOF instructions and I want to make life for the DBA, that looks like my job easier.
So, as the title says what is the location of the "standard/Best Practice' for archived redo logs? particularly the dest_1 which is usually local on the same server
Thank you.
Hello
For you, I recommend the use of the Flash/fast recovery area.
Configuration of the archived of Redo Log locations
Oracle recommends that you use fast area recovery to an archive location, because the archived logs are managed automatically by the database. The file names generated for the newspapers archived in the fast recovery area correspond to Oracle managed files and are not determined by the parameter
LOG_ARCHIVE_FORMAT
. Whatever archiving scheme you choose, it is always advisable to create multiple copies of archived redo logs.Ref 1:
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmconfb.htm#CHDEHHDH
Ref 2:
http://docs.Oracle.com/CD/E11882_01/server.112/e17157/unplanned.htm#BABEEEFH
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV89418
Kind regards
Juan M
-
Casting table PL/SQL for the type of existing table and back ref cursor
Hello
I have the problem of casting a pl/sql table for the type of an existing table and turning the ref cursor to the application. Casting a ref cursor back and number of pl/sql table works well.
Declarant
< strong > TYPE type_table_name IS TABLE OF THE package_name.table_name%ROWTYPE; < facilities >
within the stored procedure, fill in a table of this type temp_table_name and returning the ref cursor help
< strong > results OPEN to SELECT * FROM TABLE (CAST (temp_table_name AS type_table_name)); < facilities >
generates an error. type_table_name is unknown in this distribution. According to me, this happens because of the declaration of the type locally.
Statement type_table_name inside the package specification does not work neither. Incredible, cast to the said dbms_sql.number_table to specify ref cursor back and dbms_sql package works very well!
< strong > CREATE TYPE type_table_name IS TABLE OF THE package_name.table_name%ROWTYPE; < facilities > deals without any error but creates an invalid type complain a reference to package_name.table_name
I don't want to declare every column in the table in type_table_name, because any change the table_name table would result in an inconsistent type_table_name.
Thanks in advance!
Edited by: user6014545 the 20.10.2008 01:04In any case you are right that there is a problem around anchorage (or maintaining) types of objects persistent to match the table structures, they may represent.
In the case you describe, you might be better off just open the refcursor immediately the using one of the techniques described in the http://www.williamrobertson.net/documents/comma-separated.html to manage the delimited list.
In the more general case where the line of treatment is necessary, you may make the pipeline functions.
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production SQL> CREATE TABLE table_name 2 AS 3 SELECT ename column_name 4 FROM emps; Table created. SQL> CREATE OR REPLACE PACKAGE package_name 2 AS 3 TYPE type_name IS TABLE OF table_name%ROWTYPE; 4 5 FUNCTION function_name_pipelined ( 6 parameter_name IN VARCHAR2) 7 RETURN type_name PIPELINED; 8 9 FUNCTION function_name_refcursor ( 10 parameter_name IN VARCHAR2) 11 RETURN sys_refcursor; 12 END package_name; 13 / Package created. SQL> CREATE OR REPLACE PACKAGE BODY package_name 2 AS 3 FUNCTION function_name_pipelined ( 4 parameter_name IN VARCHAR2) 5 RETURN type_name PIPELINED 6 IS 7 BEGIN 8 FOR record_name IN ( 9 SELECT table_alias.* 10 FROM table_name table_alias 11 WHERE table_alias.column_name LIKE parameter_name) LOOP 12 13 PIPE ROW (record_name); 14 END LOOP; 15 16 RETURN; 17 END function_name_pipelined; 18 19 FUNCTION function_name_refcursor ( 20 parameter_name IN VARCHAR2) 21 RETURN sys_refcursor 22 IS 23 variable_name sys_refcursor; 24 BEGIN 25 OPEN variable_name FOR 26 SELECT table_alias.* 27 FROM TABLE (package_name.function_name_pipelined ( 28 parameter_name)) table_alias; 29 30 RETURN variable_name; 31 END function_name_refcursor; 32 END package_name; 33 / Package body created. SQL> VARIABLE variable_name REFCURSOR; SQL> SET AUTOPRINT ON; SQL> BEGIN 2 :variable_name := package_name.function_name_refcursor ('%A%'); 3 END; 4 / PL/SQL procedure successfully completed. COLUMN_NAME ----------- ALLEN WARD MARTIN BLAKE CLARK ADAMS JAMES 7 rows selected. SQL> ALTER TABLE table_name ADD (new_column_name VARCHAR2 (1) DEFAULT 'X'); Table altered. SQL> BEGIN 2 :variable_name := package_name.function_name_refcursor ('%A%'); 3 END; 4 / PL/SQL procedure successfully completed. COLUMN_NAME NEW_COLUMN_NAME ----------- --------------- ALLEN X WARD X MARTIN X BLAKE X CLARK X ADAMS X JAMES X 7 rows selected. SQL>
-
As I reply to this mail, there are no ads, no pop, nothing else but txt boxes provided for me to provide details of my problem. the entire screen is white from top to bottom. the background icons just like the toolbars at the top of the page have all disappeared. To get out of this screen, I blindly looking for the arrow back to top of my laptop. Its 2 dys since this started. I have not install or change anything at all for some time
Press F11 - you have toggled mode full screen on.
-
To get the data for the latest trend in 3 days
Hello
Could you please help me find data based on the latest trend in 3 days?
Based on the sql below, I can get the total number of latest trend: 3 days, but I don't know how to get the total number without using UNION all. It takes too much time to get the result. Please help me find a simple method.
Select trunc (sysdate) 3Day_Trend, count (Created_Date) of order
Where Created_Date < = trunc (sysdate)
UNION ALL
Select TRUNC (SYSDATE)-1 3Day_Trend, count (Created_Date) of order
Where Created_Date < = TRUNC (SYSDATE)-1
UNION ALL
Select TRUNC (SYSDATE) 3Day_Trend-2 count (Created_Date) of order
Where Created_Date < = TRUNC (SYSDATE)-2
For example,.
Name Order_Id Created_Date
A 1 21/08/2015
A 2 09/18/2015
A 3 25/10/2015
B 1 08/12/2015
B 2 08/23/2015
B 3 14/09/2015
B 4 26/10/2015
1 C 24/10/2015
2 C 25/10/2015
3 C 26/10/2015
Expected results:
3Day_Trend Total_Count
26/10/2015 10
25/10/2015 8
24/10/2015 6
Thank you
Guna
Guna,
You will get the best answer, if you close it and raise the issue in PL/SQL and SQL
An option (not the best option)
select (sysdate-rownum+1) "3Day_Trend" , val total_count from (select sum (case when Created_Date <= TRUNC(SYSDATE) then 1 else 0 end) column1 ,sum (case when Created_Date <= TRUNC(SYSDATE-1) then 1 else 0 end) column2 ,sum (case when Created_Date <= TRUNC(SYSDATE-2) then 1 else 0 end) column3 from Order) unpivot (val for col in(column1, column2, column3));
See you soon
AJ
-
Why I have two different execution plans for the same query on two different servers
Hello everyone.
I need your help to solve the problem quickly.
In a nutshell, we have two servers that have the same version of Oracle RDBMS (11.2.0.4 EE). One of them for purposes of development and another is a production one.
We have therefore two different execution plans for the same query executed on both servers. The only case of execution is OK and another is too slow.
So I have to slow down the work of query using the same scheme to explain that young.
Fence wire.
-
The database recovered to sleep, he's still looking for the gap sequence
I lost the archive logs in the primary and standby (deleted because of the small footprint).
So follow the steps below.
1 identified minimum database pending YVERT.
2A took inremental primary database backup according to the SNA (nnnnn)
3. transfer the backup file to the side sleep
4 cataloged database backups and recover the database.
But the medial recovery is looking for lack of archived newspapers. Please advice.Hello
Please refer to this http://www.shivanandarao.wordpress.com/2012/03/26/roll-forward-physical-standby-database-using-rman-incremental-backup/
It may be useful...
Maybe you are looking for
-
Comes to emails of ' *' Apple?
I am wary of an invoice of * - to cancel an invoice and obtain a refund for storage icloud - which I did not know I used wonder my card number, account number and name of the mother. This seems to be the kind of thing that would be a con man, right?
-
Satellite L100: What Bus controller device driver?
I reinstall a L100 with XP. Download the drivers.Now I have a "Bus controller x system qestion in! ». I need this driver? TNX and sorry my bad English x
-
Does anyone know if there are new drivers for Windows 10 for the Aspire 7740 for windows 10? The only thing I see so far is Intel RST is not running. Doesn't seem to be making anything.
-
family basic Vista Edition installation
I have a new hard drive and when I try to install windows it says that some files may be missing... . How is that? and how do I install it costs?
-
Stop 'F1 to continue' command when starting Windows 7
I want that my computer to automatically accept the command 'F1 to continue' without me press F1 each time during startup.