Taking backup of scott schema using dbms_job
hi,'
can i get some help in scheduling a backup to run everyday 3pm to take the backup of scott schema using dbms_job?
dj.
Hi,
this is wat i did,
begin
dbms_scheduler.create_schedule ( schedule_name => 'imp1',
repeat_interval => 'FREQ=DAILY;BYHOUR=12','programimp1',
comments => 'schedule t run');
dbms_Scheduler.create_program
(program_name => 'PROGRAMIMP1',
program_type => 'EXECUTABLE',
program_action => '/u01/bkp.sh',
enabled => TRUE,
comments => 'backup of schema');
dbms_scheduler.create_job
(job_name => 'daily_backup',
program_name => 'programimp1',
schedule_name => 'imp1',
enabled => TRUE ,
comments => 'backup'
end;
i am not sure whether this is correct. i created a .sh file and gave the command for import in the file.
is this the correct procedure?.
Thanks.
Similar Messages
-
What commands used for taking backup of oracle database using BR*Tools
Can somebody please help me urgently to know what are the commands used for taking backup of oracle database using BR TOOLS.Also specifythe commands in detail which can be used for taking backups of oracle database ,Online Redo log files in databse using BRBACK tool,Archiving of offline, redo log files using BRARCHIVE, and Restoring a Database using BRRESTORE tool Commands(Plese specify the commands with their Syntax used).Also specify the commands with their Syntax which are used for taking backup of oracle database(online,Offline redo log files) into Tapedrives using BRTOOLS commands.
Thanking You for helping (in advance).Dear Ashish,
BRBACKUP / BRARCHIVE calls the operating system command to copy the files.
Simple approach to get the commands is as follows.
1. Set the BR_TRACE (as given in the SAP note 29321) and run the command for which you need to know the OS / SQL commands.
2. This will generate the log file with the trace information. This trace has the information of the commands used by the job you have run.
Hope this helps.
Regards,
Madhukar -
Taking backup in windows 7 using tape drive
In Windows XP I was using ntbakup utility for taking data backup on backup tape .I have upgraded my machine to windows 7 now I am not able to take backup on tape drive.Please suggest solution so that I will be able to take backup on backup tape in windows
7.Windows 7, Windows Server 2008 platform only support backup to dvd, network share or hdd.
To use a tape library to backup your data you'll need to use another tool like Symantec Backup Exec, Arc Serv Backup or any other.
Best Regards,
Sergio Figueiredo. -
Logical backup of a schema without taking the data of particular table
How can I take the logical backup of a schema without taking the backup of data of a one particular table?? I need to give the dump to the client but I do not want to give them data of one particular table.
@Werner:
Requirement is to have a "logical backup of a schema without taking the backup of data of a one particular table".
I presume the requirement to have all tables with data and one table without data in a single dump file.
ROWS=N will not export any data for any table
:) -
Which job is taking log Backup of specific database using command?
In my SQL Server there are around 200 jobs of different databases for backup.
Which job is taking log Backup of specific database using command?
Kindly help.
ThanksHi,
Its generally a bad design to create different jobs for different databases expecially backup and restore if you create you give specific names to the jobs otherwise it would be difficult for you to track. below query will give you littlt help but if you
are running a proc to backup log files and that proc is situated in master database it wont help. If you are running SSIS package it wont help
The column database name will help you in locating the DB name for which job is running
use msdbgoselect sj.name,
sj.description,
jst.database_name,
sj.date_created,
sj.date_modified,
jst.step_name,
jst.command
from
dbo.sysjobs sj
join
dbo.sysjobsteps jst
on
sj.job_id=jst.job_id
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
To build web based application for taking backup
Actually , I have prepared menu based scripts for taking backup.
Now what i want to make is WEB BASED APPLICAATION for taking backup. My idea is to build the Web Pages which will call the scripts which i have already buit . But I don't know how through Web Pages I am able to go in the server and call the scripts .
If anybody having any idea regarding this . Pls guide me I am very thankful to him/her.
Thanx
Waiting for valuable adviceDear Sandeep Saini,
You may develop the web application is used SDK DI Server.
Please refer to SDK help and sample for more information about DI Server.
Best Regards
Jane Jing
SAP Business One Forum team -
Error while taking backup through RMAN in 10g XE
While taking backup through RMAN in XE instance , an error comes out.
The contents of oxe_backup_current file is as below :
XE Backup Log
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 6 15:49:51 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: XE (DBID=2635631092)
RMAN>
echo set on
RMAN> shutdown immediate;
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN> startup mount;
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 805306368 bytes
Fixed Size 1261444 bytes
Variable Size 209715324 bytes
Database Buffers 591396864 bytes
Redo Buffers 2932736 bytes
RMAN> configure retention policy to redundancy 2;
old RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
new RMAN configuration parameters are successfully stored
RMAN> configure controlfile autobackup format for device type disk clear;
RMAN configuration parameters are successfully reset to default value
RMAN> configure controlfile autobackup on;
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored
RMAN> sql "create pfile=''/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora'' from spfile";
*sql statement: create pfile=''/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora'' from spfile*
*RMAN-00571: ===========================================================*
*RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============*
*RMAN-00571: ===========================================================*
*RMAN-03009: failure of sql command on default channel at 07/06/2011 15:50:57*
*RMAN-11003: failure during parse/execution of SQL statement: create pfile='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora' from spfile*
*ORA-27086: unable to lock file - already in use*
*Linux Error: 11: Resource temporarily unavailable*
Additional information: 8
Additional information: 16476
RMAN> backup as backupset device type disk database;
Starting backup at 06-JUL-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=102 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=/usr/lib/oracle/xe/oradata/XE/sysaux.dbf
input datafile fno=00005 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_log01.dbf
input datafile fno=00006 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_lrg01.dbf
input datafile fno=00001 name=/usr/lib/oracle/xe/oradata/XE/system.dbf
input datafile fno=00009 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_log01.dbf
input datafile fno=00010 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_lrg01.dbf
input datafile fno=00002 name=/usr/lib/oracle/xe/oradata/XE/undo.dbf
input datafile fno=00004 name=/usr/lib/oracle/xe/oradata/XE/users.dbf
input datafile fno=00008 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_sml01.dbf
input datafile fno=00012 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_sml01.dbf
input datafile fno=00011 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_mdm01.dbf
input datafile fno=00007 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_mdm01.dbf
channel ORA_DISK_1: starting piece 1 at 06-JUL-11
channel ORA_DISK_1: finished piece 1 at 06-JUL-11
piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_07_06/o1_mf_nnndf_TAG20110706T155057_718dw649_.bkp tag=TAG20110706T155057 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 06-JUL-11
Starting Control File and SPFILE Autobackup at 06-JUL-11
piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_07_06/o1_mf_s_755797849_718dwofy_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 06-JUL-11
RMAN> configure controlfile autobackup off;
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters are successfully stored
RMAN> alter database open;
database opened
RMAN> delete noprompt obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
Backup Set 3 06-JUL-11
Backup Piece 3 06-JUL-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_07_06/o1_mf_nnndf_TAG20110706T133443_7184wr4d_.bkp
Backup Set 4 06-JUL-11
Backup Piece 4 06-JUL-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_07_06/o1_mf_s_755789675_7184x7fp_.bkp
deleted backup piece
backup piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_07_06/o1_mf_nnndf_TAG20110706T133443_7184wr4d_.bkp recid=3 stamp=755789684
deleted backup piece
backup piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_07_06/o1_mf_s_755789675_7184x7fp_.bkp recid=4 stamp=755789699
Deleted 2 objects
RMAN>
Recovery Manager complete.
RMAN error: See log for details.I think it is trying to overwrite exiting file. Either give a different name or cleanup the files in preferred location.
-
Error while compiling schema using JAXB 1.0.2 to
Hi ,
Please help ! i am trying to compile my schema using JAXB1.0.2 (bundled with Java Web Services Developer Pack 1.3 ) .I am getting a java.util.MissingResourceException . Can anyone help as to which portion of the schema i should look at.Here are the error details.
thanks
Rahul
parsing a schema...
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.util.MissingResourceException: Can't find resource for bundle ja
va.util.PropertyResourceBundle, key parser.cc.8
at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
at java.util.ResourceBundle.getString(ResourceBundle.java:274)
at com.sun.msv.datatype.xsd.regex.RegexParser.ex(RegexParser.java:138)
at com.sun.msv.datatype.xsd.regex.ParserForXMLSchema.parseCharacterClass
(ParserForXMLSchema.java:291)
at com.sun.msv.datatype.xsd.regex.RegexParser.parseAtom(RegexParser.java
:736)
at com.sun.msv.datatype.xsd.regex.RegexParser.parseFactor(RegexParser.ja
va:638)
at com.sun.msv.datatype.xsd.regex.RegexParser.parseTerm(RegexParser.java
:342)
at com.sun.msv.datatype.xsd.regex.RegexParser.parseRegex(RegexParser.jav
a:320)
at com.sun.msv.datatype.xsd.regex.RegexParser.parse(RegexParser.java:158
at com.sun.msv.datatype.xsd.regex.RegularExpression.setPattern(RegularEx
pression.java:3040)
at com.sun.msv.datatype.xsd.regex.RegularExpression.setPattern(RegularEx
pression.java:3051)
at com.sun.msv.datatype.xsd.regex.RegularExpression.<init>(RegularExpres
sion.java:3017)
at com.sun.msv.datatype.xsd.PatternFacet.compileRegExps(PatternFacet.jav
a:79)
at com.sun.msv.datatype.xsd.PatternFacet.<init>(PatternFacet.java:67)
at com.sun.msv.datatype.xsd.TypeIncubator.derive(TypeIncubator.java:261)
at com.sun.tools.xjc.reader.xmlschema.DatatypeBuilder.restrictionSimpleT
ype(DatatypeBuilder.java:82)
at com.sun.xml.xsom.impl.RestrictionSimpleTypeImpl.apply(RestrictionSimp
leTypeImpl.java:66)
at com.sun.tools.xjc.reader.xmlschema.DatatypeBuilder.build(DatatypeBuil
der.java:65)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.buildPrimitiveTy
pe(SimpleTypeBuilder.java:161)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.access$100(Simpl
eTypeBuilder.java:50)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder$Functor.checkCon
version(SimpleTypeBuilder.java:201)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder$Functor.restrict
ionSimpleType(SimpleTypeBuilder.java:276)
at com.sun.xml.xsom.impl.RestrictionSimpleTypeImpl.apply(RestrictionSimp
leTypeImpl.java:66)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.build(SimpleType
Builder.java:93)
at com.sun.tools.xjc.reader.xmlschema.cs.DefaultClassBinder.simpleType(D
efaultClassBinder.java:130)
at com.sun.xml.xsom.impl.SimpleTypeImpl.apply(SimpleTypeImpl.java:89)
at com.sun.tools.xjc.reader.xmlschema.cs.ClassSelector._bindToClass(Clas
sSelector.java:212)
at com.sun.tools.xjc.reader.xmlschema.cs.ClassSelector.bindToType(ClassS
elector.java:177)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.populate(BGMBuilder.jav
a:254)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.buildContents(BGMBuilde
r.java:223)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder._build(BGMBuilder.java:
116)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:8
0)
at com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:
424)
at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:130)
at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:79)
at com.sun.tools.xjc.Driver.run(Driver.java:177)
at com.sun.tools.xjc.Driver._main(Driver.java:80)
at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
at com.sun.tools.xjc.Driver$1.run(Driver.java:60)Hi,
A similar problem occur to me once.
In that case it was that I copied the files from:
JWSDP_HOME\jaxb\lib
to
JAVA_HOME\jre\lib\endorsed
when I shouldn�t.
I should take the files only from JWSDP_HOME\jwsdp-sahred\lib\endorsed
So try taking the files:
jaxb-api.jar
jaxb-impl.jar
jaxb-xjc.jar
jaxb-libs.jar
out of the JAVA_HOME\jre\lib\endorsed directory living them only in jaxb\lib where they should be.
Try that, and let�s see if the compilation improves. -
Table name issue accessing OATS schema using OBIEE
We are attempting to integrate OATS 12.1 with OBIEE 11g for reporting purposes and encounter the following error when using the BI Administration tool to update a row count of a physical table or query using the Analysis tool against our target OATS schema. For example:
There was an error while updating row count for
"OTM.atg.com".."OTM"."View_Tests":
[nQSError: 17011] SQL statement execution failed.
[nQSError: 17001] Oracle Error code: 942, message: ORA-00942:
table or view does not exist
at OCI call OCIStmtExecute: select count(*) from
OTM.View_Tests
I tried this out with other tables such as "TO_TestCase"
The reason for this error seems to be that our target schema contains tables that have quotes in the name when the table was created, which I understands enforces the preservation of letter case-- i.e. "Mixed_Case" names. Since this is not "our own" application, we don't really have any control over how the schema is created or the table/views named. Interestingly enough, the table appears in the BI Administration with the expected table columns, but the querying for row count and data fails.
One way we've worked around this is to manually create a VIEW of the table of interest in the target schema using all capitals. This works, but seems unnecessarily messy, especially if we are interested in using a VIEW that is already created as part of the schema.
I also found the following various discussions about setting the NQSConfig.ini file on line, but changing the value and restarting the OBIEE server doesn't seem to make a difference.
# Case sensitivity should be set to match the remote
# target database.
CASE_SENSITIVE_CHARACTER_COMPARISON = ON;
Are there other ways to get OBIEE to recognize mixed-case table names?
Thanks!Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
So if a script is, for example, to create a schema, it should look something as follows:
-- usage: create-schema.sql <schema_name>
set verify off
set define on
create user &1 identified by .. default tablespace .. quota ... ;
grant ... to &1;
--eof
If script 1 wants to call it direct then:
-- script 1
@create-schema SCOTT
If script 2 want to call it using an existing variable:
-- script 2
@create-schema &SCHEMA
Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots. -
Is it possible to export tables from diffrent schema using expdp?
Hi,
We can export tables from different schema using exp. Ex: exp user/pass file=sample.dmp log=sample.log tables=scott.dept,system.sales ...But
Is it possible in expdp?
Thanks in advance ..
Thanks,Hi,
you have to use "schemas=user1,user2 include=table:"in('table1,table2')" use parfileexpdp scott/tiger@db10g schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log{quote}
I am not able to perform it using parfile also.Using parfile it shows "UDE-00010: multiple job modes requested, schema and tables."
When trying the below, i get error
{code}
bash-3.00$ expdp directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=(\'MM\',\'MMM\') include=TABLE:\"IN\(\'EA_EET_TMP\',\'WS_DT\'\)\"
Export: Release 10.2.0.4.0 - 64bit Production on Friday, 15 October, 2010 18:34:32
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Username: / as sysdba
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=('MM','MMM') include=TABLE:"IN('EA_EET_TMP','WS_DT')"
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "MM"."EA_EET_TMP" 0 KB 0 rows
ORA-39165: Schema MMM was not found.
Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
/export/home/nucleus/dump/test.dmp
Job "SYS"."SYS_EXPORT_SCHEMA_01" completed with 1 error(s) at 18:35:19
{code}
When checking expdp help=y shows :-
{code}TABLES Identifies a list of tables to export - one schema only.{code}
As per few testing,tables from different schemas are not possible to export using expdp in a single command.
Anand -
ISE backup not working while using tftp
I have configured a repository on ISE admin node to use tftp for taking backups.
repository master
url tftp://<IP>
I initiate backup on demand to use the defined repository and specify Application-only backup. After sometime, I see success on ISE node and "show backup history" also shows success
ise/admin# sh backup history
Thu Sep 27 06:12:43 UTC 2012: backup backup1-120927-060253.tar.gpg to repository master: success
Thu Sep 27 07:31:56 UTC 2012: backup backup1-120927-072227.tar.gpg to repository master: success
However, when I check on tftp server, I see nothing. No files with names backup1-120927-060253.tar.gpg or backup1-120927-072227.tar.gpg...Has anybody else seen similar issue? Is there a bug with tftp server backup on ISE nodes?
Thanks,
KashishKashish,
Can you try moving a small file over to the tftp server? Check the directory of the local disk and issue a a copy disk:/file tftp:/path.
See if that moves a file over. I havent personally used tftp I always use ftp.
Thanks,
Tarik Admani
*Please rate helpful posts* -
How to get emp and dept tables of scott schema if they acdientally deleted
Hii I accedentally modifiled emp and dept tables in scott schema.... Can you please tell how to recreate fresh emp and dept tables ? is there any way to get emp and dept tables? please help regarding this
If you are on Oracle 10g version...
The demo tableds under scott schema can be created using oracle supplied script.
http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
Alternatively, this script exists in $ORACLE_HOME/sqlplus/demo directory.
vr,
Sudhakar B. -
HI guys
while i was taking backup database plus archived . i faced missing archived log .
please provide solution .
Thanks and regardsOsama_mustafa wrote:
906313 wrote:
HI all ,
i allocated channel and crosscheck archivelog all;
rman>show all ;
configure channel 1 device type disk format '/d01/backup/db.%U';
run
crosscheck archivelog all;
backup database plus archivelog;
Thanks and Regardsalso you can use this
run {
ALLOCATE CHANNEL disk1 DEVICE TYPE DISK FORMAT '/u01/%U';
crosscheck archivelog all;there are many ways to allocate channels, but none of them address the fact that the OP reports a missing archivelog. -
Backup Physical Standby (Dataguard) using RMAN : Issues
Hello All,
I am running a RMAN backup on standby server using the command below. The RMAN backup is actually connecting to the primary database on another server, I found this very confusing and to reassure, i shutdown the primary database and ran the backup again. It fails with not able to conenct to target database. Can you please explain?
run {
allocate channel t1 type disk format '/backup/oracle/PRODCDW/RMAN/DBFILES_%d_t%t_s%s_p%p';
allocate channel t2 type disk format '/backup/oracle/PRODCDW/RMAN/DBFILES_%d_t%t_s%s_p%p';
recover copy of database with tag 'STDBY_PRODCDW';
backup as compressed backupset format '/backup/oracle/PRODCDW/RMAN/DBFILES_%d_t%t_s%s_p%p' tag 'STDBY_PRODCDW' incremental level 1 for recover of copy with tag 'STDBY_PRODCDW' database plus archivelog delete input;
}I am not doing the image copy anymore, I am taking the RMAN incremental backups for the database. I am not getting any errors now but, Here is what I want to achieve:
I am running the RMAN backups on the standby database. I want to :
1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED/APPLIED to all my standby databases?
2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
Regards -
SQL query on emp table(SCOTT Schema): Highest salary per department
From emp table of SCOTT schema. I would like to know the name, sal,the deptno he belongs of the highest paid employee from each dept.
Explaining further:
The following query only returns deptno and max(sal) of each department. I need the name of the highest paid employee from each dept along with the below result.
SQL> SELECT DEPTNO,MAX(SAL) FROM EMP GROUP BY deptno;
DEPTNO MAX(SAL)
30 2850
20 3000
10 5000It seems you want just one ename if two employees have the same highest salary. In that case you can use this construct:
SQL> select deptno
2 , max(sal)
3 , max(ename) keep (dense_rank last order by sal)
4 from emp
5 group by deptno
6 /
DEPTNO MAX(SAL) MAX(ENAME)
10 5000 KING
20 3000 SCOTT
30 2850 BLAKE
3 rijen zijn geselecteerd.Regards,
Rob.
Maybe you are looking for
-
it wants me to believe it's opening in Spanish, but that is not the language that appears on the start page, looks like it might be German? also, since i have reinstalled, mozilla/firefox is extremely slow to open, if, in fact, it opens at all. if i
-
How do I fix duplicates on a NAS server for itunes?
I have a dlink NAS server that I'd like to use as a network itunes server. Problem is that it seems to create multiple duplicates of just about everything I have. As a result I'll have 3 - 4 of everything. Question - is there a way, or an applicat
-
Outbound delivery without reference and customer-material info record
We use outbound deliveries without reference (L0). Several customers want their own material number printed on the delivery notes. So we considered using customer material info records. Unfortunately, the customer material number is not copied from t
-
Canon DC-10 DVD Camcorder and iMovie (VR/Video DVD) *complicated*
Hi Guys, I have a complicate issue and I have no idea how to do it. The Problem: I like to cut and edit my short movies which I have recorded with the Canon DC-10 DVD Camcorder. Because the Camcorder only writes small sized DVDs I have to copy it ont
-
How to set access.log format to "combined"
Hello, I'm trying to get AWStats working on Solaris and have that working fine, but to get more information, I need to set the log format to "combined". Question is: is there a way to modify what is output in the access.log?