How to recreate datafile in oracle 10g.
pls tell me how to recreate datafile in oracle 10g...
what are situation to recreate datafile
Edited by: 898085 on Nov 18, 2011 9:16 PM
898085 wrote:
pls tell me how to recreate datafile in oracle 10g...
what are situation to recreate datafile
Edited by: 898085 on Nov 18, 2011 9:16 PMDid u mean create or recreate?
if datafie is deleted then you may add it into existing tablespace.
Try this : -
1.)sqlplus sys/xx as sysdba
2.)alter tablespace <tablespace_name> add datafile <datafile_name> size <give size>;
HTH:-)
Similar Messages
-
How to drop datafiles in oracle 10g r2
Hi all,
Db :oracle 10.2.0.3
os:solaris 10
tablespace name: jllp_tabs01
datafile:
/ora/data001/jllp/jllp_tbs01_tbl_1.dbf
/ora/data001/jllp/jllp_tbs01_tbl_2.dbf
/ora/data001/jllp/jllp_tbs01_tbl_3.dbf
/ora/data001/jllp/jllp_tbs01_tbl_4.dbf
its has consisting of 4 datafiles, I need to drop the 2 of them perminently.
the datafile are having data.
how to drop the datafiles.
please suggest me.There is no way to drop the datafiles once they are added to the tablespace. The command given by Asif , offline drop won't actually drop the datafile but would be an indication only to Oracle that you would be dropping the entire tablespace after issuing this command. In 11g, there is a command to drop the datafile but only if it's completely empty.
HTH
Aman.... -
How to delete client from oracle 10g ASM
Hi,
I would like to know how to delete client from oracle 10g ASM, while configuring Dataguard in same windows os i have by mistake created the standby in ASM.
However later i have corrected the datafile destination. My Primary database is in ASM and the standby in disk.
Could anyone please tell me how do i delete the client from ASM. On view from asmcmd it shows db_unknown and from v$asm_client
GROUP_NUMBER INSTANCE_NAME
DB_NAME STATUS
SOFTWARE_VERSION
COMPATIBLE_VERSION
1 stby
stby CONNECTED
10.2.0.1.0
10.2.0.1.0
Thanks and regards,
shaanHi Deepak,
Pls see the result from the view, i wanted to delete stby
SQL> select * from v$asm_client;
GROUP_NUMBER INSTANCE_NAME
DB_NAME STATUS
SOFTWARE_VERSION
COMPATIBLE_VERSION
1 prim
prim CONNECTED
10.2.0.1.0
10.2.0.1.0
2 prim
prim CONNECTED
10.2.0.1.0
10.2.0.1.0
1 stby
stby CONNECTED
10.2.0.1.0
10.2.0.1.0
regards,
shaan -
How to export AWM in Oracle 10g
Hi All,
Im doing export of my Analytical Workspace with option tables=AW$TEST, this command failed and thrown EXP-00055: CALLDETAIL_TEST.AW$TEST is marked not exportable, i checked NOEXP$ table and i can find my AW name in it, according to table definition i cann't perform export of those objects listed in NOEXP$ table right, I want to know from you pals how can i export AW and then import it ?
Need your feedback asap.
Thanking you pals in advance
Hassan khanAbhii wrote:
How to store image in Oracle 10g?
any example ?http://www.google.co.in/search?rlz=1C1GGLS_enIN321IN321&sourceid=chrome&ie=UTF-8&q=How+to+store+image+in+Oracle
HTH
Aman.... -
How to use iframes in oracle 10g
I have to load two jsp pages in a single html . I have done that thru iframes. But i have to dynamically load the second jsp page in the frame 2 , when the user clicks upon certain details in the frame 1 jsp page. I have wriiten the code of document.iframe in format trigger attribute. It doesn't work. Is there any other way to achieve this. I want to load the frame 2 jsp page dynamically , according to the input i get from frame 1 jsp page.
Hi,
>>Anybody know how to use profiler in oracle 10g
What do you mean "profiler". About Resource Limits/Create Profiles ?
>>i couldn't able to install the enterprise manager console.
What OS ?
>>because i need to trace the execution of a stored procedure.waiting the reply.
Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
Cheers -
How to Send mail in oracle 10g
I am new in oracle developer.....we are using oracle 10g developer...how to send mail through oracle 10g on a button click.pease help me.
Thanks in advanceThis question have been asked many times on this forum, see if you get help from following:
https://forums.oracle.com/message/5395438#5395438
Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
Check this out as well:
http://nzchaudhry.wordpress.com/2013/05/31/send-report-via-email-attachment-in-oracle-forms-10g/
You can find init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and on Windows under $ORACLE_HOME/database. Otherwise you can create it using "create pfile from spfile" command
Aneel -
How to Use Profiler in ORACLE 10g
Hi all,
Anybody know how to use profiler in oracle 10g and also i couldn't able to install the enterprise manager console.is there any tools available for that.because i need to trace the execution of a stored procedure.waiting the reply.
SathishHi,
>>Anybody know how to use profiler in oracle 10g
What do you mean "profiler". About Resource Limits/Create Profiles ?
>>i couldn't able to install the enterprise manager console.
What OS ?
>>because i need to trace the execution of a stored procedure.waiting the reply.
Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
Cheers -
How to Configure Webutil in Oracle 10g Developer Suit
Dear All,
How to Configure Webutil in Oracle 10g Developer Suit.
Please give me the step by step solution.
Thanks and Regards,
FazilThis is a very frequently asked question. Searching the Forum or the Forms Help system would have given you your answer! Search Forms Help on "Configure WebUtil" and read the configuration guide and checklist articles.
Craig... -
Appropriate size for Autoextending datafile in oracle 10g
Hi,
I am using Oracle 10g 10.2.0.3.0 on linux 64 bit with 16GB RAM, one thing i want to find out that i have my schema datafile, which set on autoextend, i have set next size to 100mb, if the file reaches to its full does it make us wait for long to create a place of 100mb or should i reduce the size from 100mb to 10mb.
What should be the appropriate Next size in Autoextend for oracle database in my case, if there is a performance problem like login delay in schema due to increasing in size of datafile then how do i find out because i do not have database diagnostic tools.
Because today there was a delay in login to the schema and EM was showing wait, but i could not find out that why the wait was there, when i check the datafile size it was 1203 MB , i thought it may be due to the extension of data file but how do i confirm this thing.
In the table DBA_ADVISOR_FINDINGS it is giving following problem
Problem PL/SQL execution consumed significant database time.
Symptom Wait class "Network" was consuming significant database time.
Problem Wait event "TCP Socket (KGAS)" in wait class "Network" was consuming significant database time.Slow connect is not related with datafile extension.
Regarding Wait event "TCP Socket (KGAS)"
Please read Metalink note 416451.1
How fast is tnsping to database, ping to database server? -
Problem while recreating control file : Oracle 10g
Hi,
I am using oracle 10g version of database. i have multiple databases. I was not able to start one database which led to control file error. Then I found that the file got corrupted. I used the following syntax to restore my control file.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "mydb" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 8
MAXLOGHISTORY 800
LOGFILE
GROUP 1 'redolog location' SIZE 500K
DATAFILE
'datafilelocation.dbf'
but it failed with the following error.
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01115: IO error reading block from file (block # 1)
ORA-01110: data file : 'datafilelocation.dbf'
ORA-27091: unable to queue I/O
ORA-27070: async read/write failed
OSD-04006: ReadFile() failure, unable to read from file
O/S-Error: (OS 23) Data error (cyclic redundancy check).
Does this mean the datafiles are also corrupted? if yes, please do let me know how i can restore my datafiles. my system is of windows XP 2002.
thanks,
HaripriyaHi,
thanks for all your replies. But I am using the full path for the log and for the datafiles. Just didnt want to reveal that before. Anyway below is the complete path that i was using.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ACMDB" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 8
MAXLOGHISTORY 800
LOGFILE
GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO01.LOG' SIZE 500K,
GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO02.LOG' SIZE 500K,
GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO03.LOG' SIZE 500K
DATAFILE
'D:/oracle/product/10.1.0/oradata/acmdb/SYSAUX01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/SYSTEM01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/TEMP01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/UNDOTBS01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/USERS01.dbf'
It is stull failing. I was not able to open the datafiles also. Looks like those are also very much corrupted. Does this mean my DB is crashed? Is there any way that I can correct the below error or only reinstallation would solve the issue. I do have all the database dump though. Please suggest me with the solution. I would like to make the reinstall as the last option.
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01115: IO error reading block from file (block # 1)
ORA-01110: data file : 'D:/oracle/product/10.1.0/oradata/acmdb/SYSTEM01.dbf'
ORA-27091: unable to queue I/O
ORA-27070: async read/write failed
OSD-04006: ReadFile() failure, unable to read from file
O/S-Error: (OS 23) Data error (cyclic redundancy check).
Thanks,
Haripriya -
How to install and configure Oracle 10g Express Edition on Fedora 11?
Hi everyone!
I have recently installed Oracle 10g XE on my Laptop Gateway T-1625, which has Fedora 11.
I followed the install instructions on [http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm] , and configured the server as explained, but something is wrong... When I try to go to the database home page http://127.0.0.1:8080/apex, I get "Failed to Connect" on Firefox 3.5b4... I don't think it's because of the Firefox version because it's proved to be very stable (for a beta).
I've search for similar issues on GNU/Linux and I found this thread in these forums: [ http://forums.oracle.com/forums/thread.jspa?threadID=915218&tstart=0] , but the solution is for Ubuntu 9.04, and if it's possible I would like to know a specific solution for Fedora 11.
I also tried to see the oracle server status with:
# /etc/init.d/oracle-xe status
And I got this....
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 25-JUN-2009 22:10:31
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=talos)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
I hope someone can help me out and guide me on the right direction. Thanks a lot!Hi again!
After your last post I realized that the dba group and the oracle user already existed.
#groupadd dba
groupadd: group dba exists
#useradd oracle -d /home/oracle -s /bin/bash -g dba
useradd: user oracle existsHowever, I finally assigned a password for that account and changed the ownership of the /usr/lib/oracle/xe
with the commands you suggested:
passwd oracle
chown -R oracle:dba /usr/lib/oracle/xeAfter this, I can log in as the oracle user but the SELinux showed a warning and the /usr/lib/oracle/xe
is treated as the oracle home, and no .bashrc file is located on this home. This is the SELinux warning:
SELinux is preventing gdm-session-wor (xdm_t) "write" to /usr/lib/oracle/xe (lib_t).
Details:
SELinux denied access requested by gdm-session-wor. /usr/lib/oracle/xe may
be a mislabeled. /usr/lib/oracle/xe default SELinux type is user_home_dir_t, but its
current type is lib_t. Changing this file back to the default type, may fix your problem.
File contexts can be assigned to a file in the following ways.
* Files created in a directory receive the file context of the parent
directory by default.
* The SELinux policy might override the default label inherited from the parent directory
by specifying a process running in context A which creates a file in a directory
labeled B will instead create the file with label C.
An example of this would be the dhcp client running with the dhclient_t type and
creates a file in the directory /etc. This file would normally receive the etc_t type due
to parental inheritance but instead the file is labeled with the net_conf_t type
because the SELinux policy specifies this.
* Users can change the file context on a file using tools such as chcon, or restorecon.
This file could have been mislabeled either by user error, or if an normally confined
application was run under the wrong domain.
However, this might also indicate a bug in SELinux because the file should not have
been labeled with this type.
If you believe this is a bug, please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.
Allowing Acces:
You can restore the default system context to this file by executing the restorecon command.
restorecon '/usr/lib/oracle/xe', if this file is a directory, you can recursively restore using
restorecon -R '/usr/lib/oracle/xe'.
Fix command:
restorecon '/usr/lib/oracle/xe'I suppose the command #useradd oracle -d /home/oracle -s /bin/bash -g dba is where I can define the user's home, but if this user already exists how can I modify its settings?
is SELinux preventing the .bashrc file to be created? or what could be causing this?.
I hope you know how much I appreciate your help and want to thank you for your time. -
How to know whether my oracle 10g instalation in unicode supported or not
Hi
i am new to oracle. I have installed Oracle 10g client and server.
I want to know whether the database created can store unicode data/arabic data.
Please guide me how can i find whether unicode support is on for my db or not.
The outputs of some of the queries run by me are as follows:
SQL> HOST ECHO $NLS_LANG;
$NLS_LANG
SQL> HOST ECHO %NLS_LANG%;
%NLS_LANG%
SQL> @.[%NLS_LANG%];
SP2-0310: unable to open file ".[AMERICAN_AMERICA.WE8MSWIN1252]"
SQL> select cust_eng_name,cust_arb_name from custmast;
select cust_eng_name,cust_arb_name from custmast
ERROR at line 1:
ORA-00942: table or view does not exist
Please reply me asap.user10817093 wrote:
1. Yeh that is the thing I want. What are the other steps that i need to do with my Oracle Client/Server for unicode support.
Where i am getting trouble is the Oracle Client/Server unicode support.
And how to decide what character set will suite me best.1. If your application is going to be a "true" Unicode application, you can set the NLS_LANG registry/environment setting on your clients to ".UTF8" to enable true Unicode support.
2. Your database needs to support Unicode, too.
The recommended database character set for this in 10g is "AL32UTF8".
If you currently have a single-byte database character set (WE8MSWIN1252), you need to decide how to get this done.
If you can simply create a new database using the "AL32UTF8" character set, this would be the easiest way.
There are several documents available (e.g. on Oracle MetaLink) that describe in detail how to convert the character set of an existing database. Depending on your data this can be a tedious task involving several steps, so may be creating a new database and exporting/importing the data might be the simplest choice if you need to migrate some existing data.
The recommended national character set is "AL16UTF16", by the way, but that shouldn't matter that much once you have a Unicode enabled database using "AL32UTF8" as database character set.
2. How to set/retrive the "Database Character Set" and "National Character Set". This has already been answered partly. Retrieve:
Database Character Set:
SELECT VALUE FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET';National Character Set:
SELECT VALUE FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_NCHAR_CHARACTERSET';In most of the cases you can't just simply set/alter the character sets, as outlined above.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
How to use help in oracle 10g XE
Hello,
I just wanted to know how to use help in sql command line in oracle 10g XE
regards,
Sreekanth.Hi thankyou very much for the answer, that web-page is very good but....
I was hoping for answer that would walk me through the help command used in the SQL PLUS like: "help create"
after i have read few manuals i came to know we can use @hlpbld.sql for building help tables it asks me for entering value 1 and 2, after that it exits the prompt and when i re-login i dont see "help command" working...
any comments ot procedure to do this... -
How to create dblink between oracle 10G and mysql
I want to create dblink between oracle 10G and mysql
I create it in ECC6.0 using DBCO transaction tcode,which database type can choose?Microsoft sql server?Because there have no mysql item.
I choosed MSS so that I can test it, but it failed,there is an error that 'ORA-12569:TNS:packet checksun failure'.
I configured the oracle tnsnames.ora file like this:
CW.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP,WORLD)
(PROTOCOL = TCP)
(HOST = XX.XX.XX.XX)
(PORT = XXXX)
(CONNECT_DATA =
(SID = XXX )
(HS = ok )
When I tnsping CW,it will fail,like this " TNS-12569:TNS:packet checksum failure"
How can I do.I want to know if this possible?
-
How to debug BPEL in Oracle 10G / Oracle 11G
Hi All,
How can we debug BPEL in Oracle 10G / Oracle 11G .
We are working on RosettaNet conversion in BPEL. We would like to debug BPEL
Appreciate your help.
Regards
VijayHi
I need to debug BPEL code in same manner how we debug Java Code ( Line by Line ) .
We are working with Java CAPS and Glassfish ESB for last 5 yrs. In NetBeans we debug BPEL in the same manner how debug Plain Java CODE.
Have a look at below link
http://wiki.open-esb.java.net/Wiki.jsp?page=TestingAndDebuggingBPELProcesses
I am looking for same sort of options to debug BPEL using Jdeveloper.
Regards
Vijay
Maybe you are looking for
-
To Display Input Field Value in Pop Up
hii guys i want to display a input field value in a pop up dialog box. For this i have taken a input field, a pop up component and a button. In the dialog box of pop up element i have taken an output text which will display the value of input field.
-
Connecting Mac Mini to Vizio 42"
It seems I have no good options. If I select 1024x576, the picture is too "zoomed" in. If I select 720p, I can barely read the words on the screen. Very few other options even come up in the display options. How can I get better options? Anyone else
-
Macbook 2.1 full freezing after I use rear camera on iPhone 4G.
Hi
-
Different colored power button !
hi guys i bought a macbook pro from best buy like 3 months ago, it was a new one so i paid full price.Then i just exchanged my mbp to another new mbp because it seems so slow to me.Then now i realize that my new macbook's power button hasnt got the s
-
Exchange 2010 to 2013 users migration
Hi, I am migrating users from Exchange 2010 to 2013 and facing a lot of migration issues. few of them are as follow. 1. It hung up at "syncing" and end up with a failure. 2. After a long migration i got the following errors Error: MigrationPermanentE