Imp tip to successful without warnings
I am doing full imp of one full exported dmp file, To finish full exp i used
direct=y &
statistics=none
and full exp was successful without warnings....
I am looking for tips to do full imp of this dmp file without warnings also
i already used
ignore=y
constraints=n
but still imp ended with ended with warnings of integrity violations , I am looking for tips to do imp without warnings .......which parameters i should use to do so?
Hi,
but still imp ended with ended with warnings of integrity violationsBe aware that it can be faster to disable constraints and drop indices, and re-add them later. I have notes here:
http://www.dba-oracle.com/oracle_tips_load_speed.htm
Hope this helps. . .
Don Burleson
Oracle Press author
Similar Messages
-
Imp full db successful without warnings
I am doing research to imp full db during my migration from 8i/Solaris db to 10g/windows
Here is the command i come up with , make me right if i am not.....
imp system/ora2000sys full=yes ignore=no statistics=none log=clin_full_import.log
FILE=
D:\yo_momma\dave_is_ugly_1.dmp,
D:\yo_momma\dave_is_ugly_2.dmp,
D:\yo_momma\dave_is_ugly_3.dmp
if this is not successful i will drop users cascade and re-run it ....
Exp successful without warnings.....
/u01/app/oracle/admin/clin/backups/com.par
userid=system/******
full=Y
inctype=complete
filesize=1g
recordlength=4096
buffer=16384
direct=YDBA2011 wrote:
I am doing research to imp full db during my migration from 8i/Solaris db to 10g/windows
Here is the command i come up with , make me right if i am not.....
imp system/ora2000sys full=yes ignore=no statistics=none log=clin_full_import.log
FILE=
D:\yo_momma\dave_is_ugly_1.dmp,
D:\yo_momma\dave_is_ugly_2.dmp,
D:\yo_momma\dave_is_ugly_3.dmp
if this is not successful i will drop users cascade and re-run it ....
Exp successful without warnings.....
/u01/app/oracle/admin/clin/backups/com.par
userid=system/******
full=Y
inctype=complete
filesize=1g
recordlength=4096
buffer=16384
direct=Ylook OK to me
Handle: DBA2011
Email: [email protected]
Status Level: Newbie (35)
Registered: Sep 9, 2005
Total Posts: 2,771
Total Questions: 268 (137 unresolved)
Why so many unanswered questions? -
Imp full db successful with warnings
Looking for options to fix those , or can i ignore them? What would be side effect if i drop/cascade users and re-run imp after increasing tablespace TS_PUBLIC size or i should not do that? and just fix the little warnings or even just ignore them?
Most of tables (i would say 95% ) & there data imported successfully after full imp , db size is 80GB around, import terminated successfully with warnings , which are below.....
IMP-00017: following statement failed with ORACLE error 1659:
"CREATE TABLE "CA_QUERY_1"
"ABLESPACE "TS_PUBLIC""
IMP-00041: Warning: object created with compilation warnings
"CREATE FORCE VIEW "ADMIN"."CHECK_EXTENTS_V"
IMP-00041: Warning: object created with compilation warnings
"CREATE TRIGGER MT1758.MEDDRA_MT1758_THE_SYN_UPD"DBA2011 wrote:
Looking for options to fix those , or can i ignore them? What would be side effect if i drop/cascade users and re-run imp after increasing tablespace TS_PUBLIC size or i should not do that? and just fix the little warnings or even just ignore them?
Most of tables (i would say 95% ) & there data imported successfully after full imp , db size is 80GB around, import terminated successfully with warnings , which are below.....
IMP-00017: following statement failed with ORACLE error 1659:
"CREATE TABLE "CA_QUERY_1"
"ABLESPACE "TS_PUBLIC""
IMP-00041: Warning: object created with compilation warnings
"CREATE FORCE VIEW "ADMIN"."CHECK_EXTENTS_V"
IMP-00041: Warning: object created with compilation warnings
"CREATE TRIGGER MT1758.MEDDRA_MT1758_THE_SYN_UPD"; I would suggest you to look at export log and find out which are the tables that got failed and import only those tables again. Since the size is quite high as you said.
Secondly, since 95% tables are already import, so i suggest you to increase the Tablespace size by adding datafile or extending existing one, then run the import for rest 5% tables.
Third, You said can you ignore warning? During import oracle tries to create Views, it first check if the tables from which view is being create are already exists or not. If the tables doesn't exists oracle will create view forcefully, and mark these view as invalid. The only way to make the views valid is to alter the views definition to point to the correct base tables.
So there is little activity left after import is done with warning, that you have to alter the view definitions so that correct tables can be used.
Also see MOS -> IMP-00041 ORA-04063 FROMUSER/TOUSER IMPORT INTO NEW DATABASE [ID 1059520.6]
Hope my suggestions helps you -
Schema imp successful without warning
I want to refresh one schema from production to stage, took schema export successfule without warnings,
exp system/**** file=schema.dmp log=schema.log owner=ARIF statistics=none
i want to do successful imp on stage db, can
imp system/test file=p00ibmtest.dmp show=y ignore=y fromuser=ARIF touser=ARIF CONSTRAINTS=n and getting these error messages, can someone help me tell exact parametes to imp successful without warnings?
IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (HR.COUNTRY_C_ID_PK) violated
Column 1 BE
Column 2 Belgium
Column 3 1Hi,
can someone help me tell exact parametes to imp successful without warnings?This is usually because there are already rows in the target table.
You can load it with indexes=n, but you will still have dups in your table.
Hope this helps. . . .
Don Burleson
Oracle Press author -
Import Successful with warnings....ORA-01658 error..
Friends,
OS: RHEL AS 3.0
DB: Oracle 9iR2
When i try to import the dump, i am getting the below message.
"Import was successful with warnings"
when i check the log file there is
IMP-00017: following statement failed with oracle error 1658:
IMP-00003: ORACLE error 1658 encountered
ORA-01658: unable to create INITIAL extent for segment in tablespace PROD_DEFAULTPlease check the below, this is what i did before importing.
I want to import only the table structures without rows from the user "SMS" to "NMS".
After creating the below tablespace the free space in "/u02" is 3GB.
AM i have to change any value in the below statement?
CREATE TABLESPACE "PROD_DEFAULT" DATAFILE
'/u02/oradata/PROD_DEFAULT.dbf' SIZE 3072M REUSE
LOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
CREATE TEMPORARY TABLESPACE "PROD_TEMP" TEMPFILE
'/u02/oradata/PROD_TEMP.dbf' SIZE 3072M REUSE
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576
CREATE USER "NMS" IDENTIFIED BY "SDF345345KLSDSD8K" DEFAULT
TABLESPACE "PROD_DEFAULT"
TEMPORARY TABLESPACE "PROD_TEMP"
GRANT CONNECT,RESOURCE TO NMS
[oracle@linuxdb oracle]$ imp system/password file=/u02/today1.dmp
log=/u02/today1.log fromuser=sms touser=nms rows=n buffer=8000000 commit=yNote:
Even if i omit "buffer" and "commit" the same error occurs.
where im making a mistake? Is there any changes i have to made in the create tablespace statement.
Please point out the mistake.
thanks & regardsnot for a single statement. for all the statements
its showing the error.instead of 512 tables
structures, only 490 tables structures were created.Because it was not able to allocate contiguous space in the tablespace.
>
actually i want to import "NMS_DEFAULT" tablespace's
table structures to "PROD_DEFAULT" tablespace.
also I want to import only the table structures
without rows from the user "SMS" to "NMS".Use FROMUSER/TOUSER for this and set the default tablespace for NMS as PROD_DEFAULT.
Now specify rown=N while running import or at the time of running export itself.
i created the "NMS_DEFAULT" tablespace with 3072M.
so i created the "PROD_DEFAULT" tablespace with the
same size.
actually i created the "PROD_DEFAULT" tablespace
using below output.
"select
dbms_metadata.get_ddl('TABLESPACE','NMS_DEFAULT')
from dual"You didnt allocate sufficient space to the tablespace, i guess.
Amardeep Sidhu
http://www.amardeepsidhu.com
Corrected a mistake...
Message was edited by:
Amardeep Sidhu -
How to compile this without warnings?
Hello,
I am learning generics, and I grasped concepts but still get stuck with this:
Properties props = System.getProperties();
List propsList = new ArrayList(props.keySet());
Collections.sort(propsList);
for (Object key : propsList) {
out.println(key + " = " + props.getProperty((String)key));
}I get 3 warnings from the compiler and was not able to get rid of them. Thing is that I don't understand what to do with Set<K> which is returned from props.keySet(). I tried to make List<String>, List<? extends Object>, List<? super String>, it was only guessing, so I would appreciate quick explanation how to make this compile without warnings.
And warnings I get are:
warning: [unchecked] unchecked call to ArrayList(java.util.Collection<? extends E>) as a member of the raw type java.util.ArrayList
List propsList = new ArrayList(props.keySet());
^
warning: [unchecked] unchecked conversion
found : java.util.List
required: java.util.List<T>
Collections.sort(propsList);
^
warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.List)
Collections.sort(propsList);
Thank you!ndario wrote:
OK, List<String> is what I want, but I can't get it as
List<String> propsList = new ArrayList<String or whatever>(props.keySet());
The constructor you use here does not allow for what you intent to do, right. But all the constructor does is to create a new list and add all elements from the set. This can also be done by creating the list first and adding the set's element in a loop, ensuring to convert each element to the desired type.
Thing is that I am not looking for a solution to this problem (there are many ways to sort keys of Properties) but trying to learn something about generics. I was interested what needs to be done to compile the code snippet from the first post without warnings. Is it possible at all?Sure, I already told you what you need to do:
1. Define the list as I did in my first posting
2. Define your own Comparator<Object> to be passed as second parameter to sort(). -
Export is terminating successfully with warnings
Hi Gurus,
Export is getting terminated successfully with warnings. Below errors are recorded in export file
EXP-00008: ORACLE error 4063 encountered
ORA-04063: package body "SYS.LT_EXPORT_PKG" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.LT_EXPORT_PKG"
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.system_info_exp
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'EXFSYS.DBMS_EXPFIL_DEPASEXP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling EXFSYS.DBMS_EXPFIL_DEPASEXP.system_info_exp
EXP-00008: ORACLE error 4063 encountered
ORA-04063: package body "SYS.LT_EXPORT_PKG" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.LT_EXPORT_PKG"
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.system_info_exp
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'EXFSYS.DBMS_EXPFIL_DEPASEXP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling EXFSYS.DBMS_EXPFIL_DEPASEXP.system_info_exp
. exporting pre-schema procedural objects and actions
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'EXFSYS.DBMS_EXPFIL_DEPASEXP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp
EXP-00008: ORACLE error 4063 encountered
ORA-04063: package body "SYS.LT_EXPORT_PKG" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.LT_EXPORT_PKG"
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.schema_info_exp
EXP-00008: ORACLE error 6550 encountered
ORA-06550: line 1, column 13:
PLS-00201: identifier 'DMSYS.DBMS_DM_MODEL_EXP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
EXP-00083: The previous problem occurred when calling DMSYS.DBMS_DM_MODEL_EXP.schema_info_exp
Please help me how to resolve this.
Thanks,
DasarathPl post details of OS and database versions, along with the complete export command. Has this ever worked before ? If so, what has changed since the last successful export ?
See these MOS Docs
298107.1 - Export Is Giving Errors Exp-00008 ORA-4068 ORA-4063 on SYS.LT_EXPORT_PKG
740818.1 - Full Database Export Raises Warnings EXP-8 ORA-6550 PLS-201 Identifier 'SYS.LT_EXPORT_PKG' Must be Declared
312317.1 - Export Failing with ORA-06550 and PLS-00201 on LT_EXPORT_PKG
HTH
Srini -
Export terminated successfully with warnings.
Hi,
I have a 9i database (9.2.0.8.0) running on a HP Unix machine (B.11.11). The database size is 170GB.
When I run a full database export, I get couple of ORA-01403 error.
EXP-00008: ORACLE error 1403 encountered
ORA-01403: no data found
But the end of it, it shows Export terminated successfully with warnings.
Is my export backup valid or do I need to solve the ORA-01403 issue? And how do I solve that?
Request your quick help on this1
thanks!I checked the Oracle Support notes, but it says that the cause is due to the FILESIZE parameter. But we have not used the FILESIZE parameter in our environment.
And there are enough space in the file system too. So I dont think the spacing is an issue here.
userid=dba_backup/xxxxxx
file=xxxxxx.dmp
compress=n
consistent=y
full=y
rows=y
direct=yThe solution mentioned in the note is:
Solution
-- To implement the solution, please execute the following steps::
Add more files to the file= list to make sure there is enough space available for the export.How do I do that? file=xxxxxx.dmp, yyyyyy.dmp is it?
Thanks! -
Backup Error "Return Code 0001 Success with warnings"
Hi All,
I have a problem while taking backup using brtools .We scheduled a full offline backup and in DB12 when i check the status of last successful backup then it shows like
Return Code 0001 Success with warnings
System: ECC6
OS:Solaris
DB:Oracle10g
What does this error mean there is no warning in log file also.
Anybody have any idea??
Thanks in AdvanceHi,
Thanks for your reply .
Here is my Logfile
TOO LONG .....
BR0051I BRBACKUP 7.00 (32)
BR0055I Start of database backup: bdzgizji.aff 2008-11-14 22.18.54
BR0484I BRBACKUP log file: /oracle/<MYSID>/sapbackup/bdzgizji.aff
BR0477I Oracle pfile /oracle/<MYSID>/102_64/dbs/init<MYSID>.ora created from spfile /oracle/<MYSID>/102_64/dbs/spfile<MYSID>.ora
BR0286W Size 2306875392 of file /oracle/<MYSID>/sapdata1/sr3700_2/sr3700.data2 is different from Oracle file size 2222989312
BR0101I Parameters
Name Value
oracle_sid <MYSID>
oracle_home /oracle/<MYSID>/102_64
oracle_profile /oracle/<MYSID>/102_64/dbs/init<MYSID>.ora
sapdata_home /oracle/<MYSID>
sap_profile /oracle/<MYSID>/102_64/dbs/init<MYSID>.sap
backup_mode ALL
backup_type offline_force
backup_dev_type util_file
util_par_file /oracle/<MYSID>/102_64/dbs/init<MYSID>.utl
system_info ora<MYSID>/ora<MYSID> DBD112 SunOS 5.10 Generic_127127-11 sun4v
oracle_info <MYSID> 10.2.0.2.0 8192 2867 21991272 DBD112 UTF8 UTF8
sap_info 700 SAPSR3 0002LK0003<MYSID>0011Q07320361650013NetWeaver_ORA
make_info sun_64 OCI_102 Feb 6 2008
command_line brbackup -u / -c -d util_file -t offline_force -m all -a -sd -c
BR0116I ARCHIVE LOG LIST before backup for database instance <MYSID>
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/<MYSID>/oraarch/<MYSID>arch
Archive format %t_%s_%r.dbf
Oldest online log sequence 2864
Next log sequence to archive 2867
Current log sequence 2867 SCN: 21991272
Database block size 8192 Thread: 1
Current system change number 22007193 ResetId: 665869765
BR0118I Tablespaces and data files
Tablespace TS-Status F-Status File Size Id. Device Link Type MaxSize IncrSize BlkSize
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3_1/sr3.data1 2097160192 4 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3_2/sr3.data2 2097160192 5 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3_3/sr3.data3 2097160192 6 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3_4/sr3.data4 2097160192 7 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3_5/sr3.data5 2097160192 8 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3_10/sr3.data10 2118131712 13 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3_6/sr3.data6 2097160192 9 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3_7/sr3.data7 2097160192 10 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3_8/sr3.data8 2097160192 11 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3_9/sr3.data9 2097160192 12 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3_11/sr3.data11 2181046272 14 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3_12/sr3.data12 2369789952 15 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3_13/sr3.data13 2181046272 16 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3_14/sr3.data14 2202017792 17 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3_15/sr3.data15 2118131712 18 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3_16/sr3.data16 2306875392 19 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3_17/sr3.data17 10485768192 20 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3_18/sr3.data18 10485768192 21 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3_19/sr3.data19 3292536832 22 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3_20/sr3.data20 2097160192 23 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3700_1/sr3700.data1 2160074752 24 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3700_2/sr3700.data2 2222989312 25 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3700_3/sr3700.data3 2411732992 26 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3700_4/sr3700.data4 10485768192 27 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3700_5/sr3700.data5 10485768192 28 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3700_6/sr3700.data6 10485768192 29 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3700_7/sr3700.data7 9374277632 30 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata2/sr3700_8/sr3700.data8 2789220352 31 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3700_10/sr3700.data10 2327846912 33 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3700_11/sr3700.data11 2411732992 34 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3700_12/sr3700.data12 2181046272 35 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata3/sr3700_9/sr3700.data9 3187679232 32 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3700_13/sr3700.data13 2160074752 36 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3700_14/sr3700.data14 2327846912 37 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3700_15/sr3700.data15 2222989312 38 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE+ /oracle/<MYSID>/sapdata4/sr3700_16/sr3700.data16 2139103232 39 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE* ONLINE /oracle/<MYSID>/sapdata4/sr3700_17/sr3700.data17 2097160192 43 9764872 NOLINK FILE 0 0 8192
PSAPSR3700 ONLINE* ONLINE /oracle/<MYSID>/sapdata4/sr3700_18/sr3700.data18 2097160192 44 9764872 NOLINK FILE 0 0 8192
PSAPSR3700 ONLINE* ONLINE /oracle/<MYSID>/sapdata4/sr3700_19/sr3700.data19 2097160192 45 9764872 NOLINK FILE 0 0 8192
PSAPSR3USR ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sr3usr_1/sr3usr.data1 20979712 40 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPTEMP ONLINE# ONLINE+ /oracle/<MYSID>/sapdata2/temp_1/temp.data1 2097160192 -1 9764872 NOLINK FILE 10485760000 20971520 8192
PSAPUNDO ONLINE- ONLINE+ /oracle/<MYSID>/sapdata3/undo_1/undo.data1 9374277632 2 9764872 NOLINK FILE 10485760000 20971520 8192
SYSAUX ONLINE* ONLINE+ /oracle/<MYSID>/sapdata1/sysaux_1/sysaux.data1 272637952 3 9764872 NOLINK FILE 10485760000 20971520 8192
SYSAUX ONLINE* ONLINE /oracle/<MYSID>/sapdata1/sysaux_2/sysaux.data2 2097160192 42 9764872 NOLINK FILE 0 0 8192
SYSTEM ONLINE* SYSTEM+ /oracle/<MYSID>/sapdata1/system_1/system.data1 880812032 1 9764872 NOLINK FILE 10485760000 20971520 8192
SYSTEM ONLINE* SYSTEM /oracle/<MYSID>/sapdata1/system_2/system.data2 2097160192 41 9764872 NOLINK FILE 0 0 8192
BR0119I Redo log files
File Size Group Device Status Link Type
/oracle/<MYSID>/origlogA/log_g11m1.dbf 52429312 1 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/mirrlogA/log_g11m2.dbf 52429312 1 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/origlogB/log_g12m1.dbf 52429312 2 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/mirrlogB/log_g12m2.dbf 52429312 2 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/origlogA/log_g13m1.dbf 52429312 3 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/mirrlogA/log_g13m2.dbf 52429312 3 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/origlogB/log_g14m1.dbf 52429312 4 9764872 INUSE NOLINK FILE
/oracle/<MYSID>/mirrlogB/log_g14m2.dbf 52429312 4 9764872 INUSE NOLINK FILE
BR0120I Control files
File Size Id. Device Link Type
/oracle/<MYSID>/origlogA/cntrl/cntrl<MYSID>.dbf 15908864 0 9764872 NOLINK FILE
/oracle/<MYSID>/origlogB/cntrl/cntrl<MYSID>.dbf 15908864 0 9764872 NOLINK FILE
/oracle/<MYSID>/sapdata1/cntrl/cntrl<MYSID>.dbf 15908864 0 9764872 NOLINK FILE
BR0280I BRBACKUP time stamp: 2008-11-14 22.18.57
BR0057I Backup of database: <MYSID>
BR0058I BRBACKUP action ID: bdzgizji
BR0059I BRBACKUP function ID: aff
BR0110I Backup mode: ALL
BR0077I Database files for backup:
/oracle/<MYSID>/origlogA/log_g11m1.dbf
/oracle/<MYSID>/origlogB/log_g12m1.dbf
/oracle/<MYSID>/origlogA/log_g13m1.dbf
/oracle/<MYSID>/origlogB/log_g14m1.dbf
/oracle/<MYSID>/origlogA/cntrl/cntrl<MYSID>.dbf
BR0061I 51 files found for backup, total size 146335.533 MB
BR0143I Backup type: offline_force
BR0130I Backup device type: util_file
BR0109I Files will be saved by backup utility
BR0289I BRARCHIVE will be started at the end of processing
BR0126I Unattended mode active - no operator confirmation required
BR0280I BRBACKUP time stamp: 2008-11-14 22.18.57
BR0307I Shutting down database instance <MYSID> ...
BR0280I BRBACKUP time stamp: 2008-11-14 22.20.47
BR0308I Shutdown of database instance <MYSID> successful
BR0280I BRBACKUP time stamp: 2008-11-14 22.20.47
BR0229I Calling backup utility with function 'backup'...
BR0278I Command output of '/usr/sap/<MYSID>/SYS/exe/run/backint -u <MYSID> -f backup -i /oracle/<MYSID>/sapbackup/.bdzgizji.lst -t file -p /oracle/<MYSID>/102_64/dbs/init<MYSID>.utl -c':
WARNING: sort_backup_type not specified in .utl file
WARNING: default sort_backup_type to <size> for backup
///Here i feel some doubt initially but it does not have to take anything with this error as same warning is there in DEV server log also but there backup is sucessful///
Program: /usr/sap/<MYSID>/SYS/exe/run/backint 6.0
Input File: /oracle/<MYSID>/sapbackup/.bdzgizji.lst
Profile: /oracle/<MYSID>/102_64/dbs/init<MYSID>.utl
Function: BACKUP
Backup Type: BACKUP_FILE
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3_1/sr3.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3_2/sr3.data2
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3_3/sr3.data3
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3_4/sr3.data4
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3_5/sr3.data5
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3_10/sr3.data10
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3_6/sr3.data6
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3_7/sr3.data7
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3_8/sr3.data8
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3_9/sr3.data9
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3_11/sr3.data11
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3_12/sr3.data12
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3_13/sr3.data13
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3_14/sr3.data14
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3_15/sr3.data15
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3_16/sr3.data16
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3_17/sr3.data17
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3_18/sr3.data18
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3_19/sr3.data19
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3_20/sr3.data20
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3700_1/sr3700.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3700_2/sr3700.data2
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3700_3/sr3700.data3
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3700_4/sr3700.data4
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3700_5/sr3700.data5
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3700_6/sr3700.data6
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3700_7/sr3700.data7
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/sr3700_8/sr3700.data8
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3700_10/sr3700.data10
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3700_11/sr3700.data11
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3700_12/sr3700.data12
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/sr3700_9/sr3700.data9
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_13/sr3700.data13
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_14/sr3700.data14
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_15/sr3700.data15
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_16/sr3700.data16
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_17/sr3700.data17
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_18/sr3700.data18
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata4/sr3700_19/sr3700.data19
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sr3usr_1/sr3usr.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata2/temp_1/temp.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata3/undo_1/undo.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sysaux_1/sysaux.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/sysaux_2/sysaux.data2
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/system_1/system.data1
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/sapdata1/system_2/system.data2
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/origlogA/log_g11m1.dbf
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/origlogB/log_g12m1.dbf
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/origlogA/log_g13m1.dbf
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/origlogB/log_g14m1.dbf
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
#FILE..... /oracle/<MYSID>/origlogA/cntrl/cntrl<MYSID>.dbf
#SAVED.... VXF1226681408
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.02
BR0232I 51 of 51 files saved by backup utility
BR0230I Backup utility called successfully
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.04
BR0304I Starting and opening database instance <MYSID> ...
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.35
BR0305I Start and open of database instance <MYSID> successful
BR0117I ARCHIVE LOG LIST after backup for database instance <MYSID>
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/<MYSID>/oraarch/<MYSID>arch
Archive format %t_%s_%r.dbf
Oldest online log sequence 2864
Next log sequence to archive 2867
Current log sequence 2867 SCN: 21991272
Database block size 8192 Thread: 1
Current system change number 22012086 ResetId: 665869765
BR0280I BRBACKUP time stamp: 2008-11-15 05.11.37
BR0229I Calling backup utility with function 'backup'...
BR0278I Command output of '/usr/sap/<MYSID>/SYS/exe/run/backint -u <MYSID> -f backup -i /oracle/<MYSID>/sapbackup/.bdzgizji.lst -t file -p /oracle/<MYSID>/102_64/dbs/init<MYSID>.utl -c':
WARNING: sort_backup_type not specified in .utl file
WARNING: default sort_backup_type to <size> for backup
Program: /usr/sap/<MYSID>/SYS/exe/run/backint 6.0
Input File: /oracle/<MYSID>/sapbackup/.bdzgizji.lst
Profile: /oracle/<MYSID>/102_64/dbs/init<MYSID>.utl
Function: BACKUP
Backup Type: BACKUP_FILE
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/102_64/dbs/init<MYSID>.ora
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/102_64/dbs/spfile<MYSID>.ora
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/102_64/dbs/init<MYSID>.sap
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/102_64/dbs/init<MYSID>.utl
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/sapreorg/space<MYSID>.log
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/sapreorg/struc<MYSID>.log
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/sapbackup/bdzgizji.aff
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
#PFLOG.... /oracle/<MYSID>/sapbackup/back<MYSID>.log
#SAVED.... VXF1226706058
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.09
BR0232I 8 of 8 files saved by backup utility
BR0230I Backup utility called successfully
BR0056I End of database backup: bdzgizji.aff 2008-11-15 05.12.09
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.13
BR0053I BRBACKUP completed successfully with warnings
BR0280I BRBACKUP time stamp: 2008-11-15 05.12.13
BR0291I BRARCHIVE will be started with options '-U -d util_file -sd -c'
BR0280I BRBACKUP time stamp: 2008-11-15 05.13.36
BR0292I Execution of BRARCHIVE finished with return code 0
Please suggest as i am not able to understand that error code.
Thanks -
THERE IS A PROBLEM IN OPENING ANY FILE. WHEN OPENING - A RAPID SUCCESSION OF FILES OPEN, ONE ATOP THE NEXT, WITHOUT SHOWING FILE'S CONTENT. THIS CONTINUES FOR QUITE A WHILE. I MUST TURN OFF COMPUTER. IT IS NOT POSSIBLE TO CHOOSE ANY OTHER FUNCTION WHILE THIS IS HAPPENING, IE : WHEN OPENING A FILE. AS IN , I CANNOT OPEN GOOGLE OR MAIL, ETC. AND THE FILES KEEP OPENING AS UNTITLED. SO I AM NOT ABLE TO OPEN ANY ONE FILE, AND SEE ITS CONTENT, THEY JUST KEEP STACKING LIKE EMTY PAGES ONE ON TOP OF THE NEXT.
THANK YOU
THAT DOES NOT SEEM TO BE THE ANSWER
I HAVE A MAC
BOUGHT IN 2008
AND I DO NOT SEE THAT I HAVE A STUCK KEY
PERHAPS I AM NOT UNDERSTANDING WHAT YOU MEAN -
How to check if my IMP parfile is okey without executing.please help.
Hi guyz,
please tell me how can i check my IMP parfile without executing it.
one of my colleagues told that it can be done but he did,nt tell how :-(
please help.
Thnxxxxx in advance,
Navneet KaurHi Navneet,
You might get more help with this if you post to the database forum (General Database Discussions
From recollection I think it will depend on what you have in your parfile - if your parfile ONLY specifies what tables to import i.e. tables=table1,table2 etc
then use the following command:
imp username/passord file=mydmpfile.dmp parfile=myparfile.par show=y
and this will list what would be imported without actually doing anything.
Lawrence -
Tips for Restoring Without Migration Assistant?
I'm upgrading my HD this week and looking for a humane way to restore my data without using Migration Assistant, used for the past five restorations...corrupt files and all. I long for a fresh start but dread the old, tedious method of restoring data by hand. Is there an easier way? If not is there a guide for what settings files I can safely bring over and what to avoid? I'll have a bootable SuperDuper or CarbonCopy Cloner backup.
I'm actually with you 100% on this baltwo. There really is very little that can't be resolved with a fresh reinstall of Snow Leopard's default installation. So the options are as follows starting with the easiest and progressing to the more difficult:
A. Clone the legacy OS & User Accounts back over to the new drive, followed by a default SL Install + Software Update to freshen the OS if so desired.
B. Install the OS and use Migration Assistant to restore all User Accounts and Applications.
C. Install the OS and use Migration Assistant to restore ONLY user data (Photos, Music, Videos, Documents, etc...). Followed by reinstalling all 3rd-party apps and manually configuring all previous settings (i.e preferences & networking).
D. Install the OS and manually moving only desired user data and reinstalling all 3rd-party apps and manually configuring all previous settings (NOTE: This option is reserved for only the most extreme circumstances as it involves a serious commitment of time and introduces the potential for permissions issue when trying to integrate legacy user data with a virgin user account).
Like baltwo, I have never had to perform options D, and option C perhaps only once. My user accounts, and all of their data, have successfully been migrated across some 5 Macs since the option to do so was introduced. I believe I still have some data within my primary user account that was generated back in the OS 8 & 9 days.
Rest assured, when problems arise they are rarely the result of data found within your user account and are more likely the result of corrupt OS or App files. As a result I have never hesitated to migrate my complete user account over when I upgraded my Mac. OS Software and Apps may come and go, but my user account is rock solid and completely portable with the help of Migration Assistant. I think baltwo would agree. -
DB12 log RC code:0001 Success with warnings
Hi,
I have scheduled <b>Whole database online + redo log backup</b> , which started successfully. I have went to DB12 then log shows that return code :0001 sucess with warnings
Also message pops up that "The redo log files created during the last online backup have not yet been archived using BRARCHIVE.They are needed for a complete recovery."
Not sure what is this warning. Any help...
Thanks
ChimsikHow are you scheduling this backup (in DB13 or using scripts / sapdba)? Please post the part of the backup log that shows the command that was run to start the backups. Also please post from the end of the logs, which shows progress in backing up the archives. There may also be a separate archive log file corresponding to your backup run. Please paste that as well.
Typically archives can be covered by flags -sd, -cds etc. I would like to know what flags your backup is using.
Regards,
Sanket -
Apple Mail & Gmail IMAP: Any tips for success?
Hello all.
Is anyone having a lot of success with using Apple Mail with Gmail IMAP? I've followed all the directions, and things work pretty well for a while ... but inevitably, after a few days, Mail seems to stop working entirely.
I can delete Gmail account on Mail and start over again ... but, if I have to keep doing that, what's the point?
The problems usually begin when I ask Apple Mail to open the Gmail All Mail folder. It starts opening the mail -- and never stops. I have to do a lot of force quitting.
What have other people been experiencing? What tips can people share? I'd like to get everything working properly.I think GMail's IMAP support is just extremely slow. For now I'm still using POP on my computers and IMAP for phone access only. Hopefully it will speed up soon enough.
But the problems you're experiencing aren't unique to you. I'm not sure there's anything you can do, and I don't know that it's a Mac specific problem? -
How can I write a program that compiles without warnings?
I tried the following with the 1.5 beta-compiler (build 28; I think):
class Y {
public static final class Pair<X,Y> {
private X fst;
private Y snd;
public Pair(X fst, Y snd) {this.fst=fst; this.snd=snd;}
public X getFirst() { return fst; }
public Y getSecond() { return snd; }
public String toString() { return "("+fst+","+snd+")"; }
public static void main(String... args) {
Pair[] pairArr = new Pair[10]; // supposed to be an array of Pair<Integer,Integer>
for (int i=0; i<pairArr.length; i++)
pairArr[i] = new Pair<Integer,Integer>(i,i);
for (int i=0; i<pairArr.length; i++) {
Pair<Integer,Integer> p = pairArr; // unchecked warning
System.out.println(p);
Integer first = p.getFirst();
Integer second = p.getSecond();
// ... more stuff ...
It turns out that I get an unchecked warning when I extract an element from the array of pairs. Okay, that's fine. How can I avoid the warning? I had expected that an explicit cast would help.
Pair<Integer,Integer> p = (Pair<Integer,Integer> )pairArr;
With a cast I'm telling the compiler: "I _know_ what I'm doing; please trust me." But the compiler still issues a warning.
How can I write a warning-free program in this case? The only thing I can think of, is not using the parameterized type Pair in its parameterized form. But it's not the idea of Java Generics that I refrain from using parameterized types. What am I missing?It turns out that I get an unchecked warning when I
extract an element from the array of pairs. Okay,
that's fine. How can I avoid the warning? I had
expected that an explicit cast would help.
Pair<Integer,Integer> p = (Pair<Integer,Integer>
)pairArr;
With a cast I'm telling the compiler: "I _know_ what
I'm doing; please trust me." But the compiler still
issues a warning. Yes, but at least you were able to change the warning from "unchecked assignment" to "unchecked cast" which is a little shorter ;-)
Seriously , since arrays of generic types are disallowed, there is probably no way to get rid of these warnings - which makes a strong point for eliminating "unchecked" warnings altogether (see the other thread "selectively suppressing compiler warnings")
Cheerio,
Gernot
Maybe you are looking for
-
How to get SSLSession in Servlet?
Hello, Is there any new way to get a SSLSession object inside Servlet? Why javax.net.ssl.session attribute is no longer available since Servlet 2.1 specification? See: http://java.sun.com/products/servlet/2.1/api/javax.servlet.ServletRequest.html#get
-
Hello All, I was using DATAEXPORT COMMAND to export certain fields (some child members and some high level members) but the output doesn't come up in row wise... 2nd thing is if I do the same thing in report script, I can get nice look but the exclud
-
My iMac has been shutting down multiple times a day.
Here is the diagnostics report for the last crash: Process: crsud [49] Path: /usr/libexec/crsud Identifier: crsud Version: ??? (???) Code Type: X86-64 (Native) Parent Process: launchd [1] Date/Time: 2013-1
-
How to structure the internal table issue I want to download to excel
Hi , I am trying to download the data from the internal table whose structure was i HAVE ONE INTERNAL TABLE WHICH IS 123 ABC MIKE 123 ABC DALLAS 123 ABC BOMBAY 345 BCD MEENAL 345 BCD SHINDE 345 BCD UJWALA I want the output the i WANT THE INTERNAL TAB
-
Hi All, Can anybody explain what are the different steps in Make to Order Process ( Sale order creation to Sale Order settlement) with accounting entries. Thanks & regards, Ganesh