Alibabacloud.com offers a wide variety of articles about oracle add datafile to tablespace, easily find your oracle add datafile to tablespace information here online.
Insufficient permissions are reported when creating a tablespace. The following problems are caused:
Create tablespace test1 datafile 'd: \ mydf. dbf' size 10 m;1. Create a tablespace and report insufficient Permissions2. view the permissions of the current user3. Relationship between permissions and RolesPermissions:
Daoteng Oracle for a while. Because the project often need to use, some basic function or need to grasp, convenient for peacetime project docking and maintenance, truth-seeking, speak, today record an Oracle 11g complete creation of tablespace example1. LoginSu-oracelSqlplus/as SYSDBA2. Create a user
Create user TestUser identified by testuser123;
Processing When the oracle tablespace is too large
First, view the data usage of all tablespaces.
SELECT Upper (F. TABLESPACE_NAME) "tablespace name", D. TOT_GROOTTE_MB "tablespace size (M)", D. TOT_GROOTTE_MB-F. TOTAL_BYTES "used space (M)", To_char (Round (D. TOT_GROOTTE_MB-F. TOTAL_BYTES)/D. TOT_GROOTTE_MB * 100, 2)
This article introduces some common statements used to import and export tablespaces in oracle 11g linux. For more information, see.
Sqlplus
/As sysdba
-- View the dbf storage locationSelect * from dba_data_files; -- view the file location SELECT * FROM dba_directories;-- Create a tablespaceCreate tablespace bp_oracle logging datafile '/u02/oradata/devdb/bp_oracl
After the tablespace file is accidentally deleted by Oracle, the database cannot be started. [Problem description] After the tablespace file is accidentally deleted by Oracle, the database cannot be started. The error table space file does not exist. [solution]
Sqlplus/as sysdba # log on to the database shutdown immed
file value: Sql> create Pfile from SPFile; Add this parameter and put the name of the segment that you want to restore in Corrupted_rollback_segments= (_syssmu10_3550978943$,_syssmu9_1424341975$,_syssmu8_2012382730$,_syssmu7_3286610060$,_syssmu6_2443381498$,_syssmu5_1527469038$,_syssmu4_1152005954$,_syssmu3_2097677531$,_syssmu2_2232571081$,_syssmu1_3780397527$,_syssmu22_888340975$,_syssmu21_2646097468$,_syssmu20_1273092953$,_syssmu19_2470562502$,_sys
1. View all users in the current database: Select username from dba_users;2. View the user logged in for the current session: Show users or select username from user_users;3. View all tables for a user: SELECT * from Dba_tables where owner= ' username ';--username to capitalize or select table_name from dba_tables where owner= ' Netfolder ‘;4, check the location of control files, and other information: SELECT * from V$controlfile;5. View users and their default
oracle| data
Continued above: HTTP://WWW.CSDN.NET/DEVELOP/READ_ARTICLE.ASP?ID=20220
Ii. the database is activated.
If you detect a data file that is missing or corrupted the rollback segment tablespace, and the database is running, do not drop it. In many cases, the database is open rather than closed to solve the problem.
Two possible solutions to this situation are:
A offline The missing data file and
Label:Tablespace gti40_data01 data File gti40_data01.dbf I deleted it.I'll run the drop tablespace qwer again.Will errorORA-01116: Error opening database file 48 o'clockORA-01110: Data file: '/DATA/GTI40_DATA01.DBF 'ORA-27041: Unable to open fileLinux error:2: No such file or directoryAdditional Information:3How can I delete this tablespace?----------------------------------------------------------1.shutdow
I. Modifying table space size Solution to the above problem: by increasing the table space can be resolved as follows:SQL code
log in with a DBA user
Sqlplus/ as SYSDBA;
execute the following command:
SQL > ALTER tablespace SYSTEM ADD datafile '/u01/app/oracle/oradata/test/system02.dbf ' SIZE 20480M
Query statement related to oracle tablespace -- merge tablespace size alter tablespace users coalesce -- query data file select file_name, file_id from dba_data_files -- query database object space size select owner, segment_name, sum (bytes) from dba_extents where file_id = 4 group by owner, segment_name order by sum
Oracle tablespace recovery
If the test. dbf data file of test in a tablespace is deleted by mistake, and the database cannot be opened the next time you restart the database ),Always reports an error: SQL> alter database open;Alter database open *ERROR at line 1:ORA-01157: cannot identify/lock data file 6-see DBWRtrace fileORA-01110: data file 6: '/u01/app/
Automatic expansion of Oracle 10 Gb tablespaceHow is it implemented? This article mainly introduces this part of content, hoping to help you.
Method 1: Management Interface em
Command:
ALTERTABLESPACE"TBS_NAME"
ADDDATAFILE'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ex_data'
SIZE10240MAUTOEXTENDONNEXT50MMAXSIZEUNLIMITED;
Note: This command modifies the original t
Oracle 11 tablespace dbf File migration
When the disk space of the oracle data file is insufficient or the dbf file needs to be migrated to another location in other cases, the procedure is as follows:
1. sqlplus sys/sys as sysdba
2. shutdown immediate
3. copy the dbf file to a new location.
4. startup mount;
5. alter database rename file 'e: \
The sys user logs in as a DBA under cmd:
Run sqlplus/nolog in cmd.
ThenConn/As sysdba
Note:
1. If it is enabled in tools such as PL/SQL, directly modify the followingCodeMedium[Italic bold Section]Run
2. Make sure the path exists,For example【D: \ oracle \ oradata \ Oracle9i \] is the path of the file to be saved.Exist
/*Four steps*/
/* Step 2: create a temporary tablespace */
Create temporary
Oracle will inevitably have no space to recycle when it is used to shrink the tablespace database. If the space is too large, use the following method to recycle it. Query the space occupied by a table: [SQL] SELECT tablespace_name, 100 * (sum_max-sum_alloc + nvl (sum_free, 0)/sum_max AS capa_per, (sum_max-sum_alloc + nvl (sum_free, 0)/1024/1024 AS capa_free, (sum_alloc-nvl (sum_free, 0)/1024/1024 as capa_u
Example code [SQL] create smallfile tablespace "newts" datafile 'd: \ app \ oracle \ oradata \ orcl11g \ newts01.dbf 'size 100 m autoextend on next 10 m maxsize 200 m logging/* all operations on segments in the tablespace will generate redo content, this is the default practice. You can disable generating redo options
This article details the use of ORACLE commands to create databases and table spaces on the command line
1, the use of Super User login Sqlplus.
2, create the table space:
sql> Create tablespace Test
2 datafile ' D:\oracle\oradata\test\test.dbf '
3 size 100M autoextend on next 10M maxsize unlimited extent manageme
Label:Execute the following commands by using SYSTEM account login Oracle: >sqlplus System/[email Protected]:1522/xe; Sql*plus:release 12.1.0.1.0 Production on Tue Sep 22 20:16:29 2015Copyright (c) 1982, Oracle. All rights reserved. Connected to:Oracle Database 11g Express Edition Release 11.2.0.2.0-64bit ProductionSql> 1.the below command to display thecurrent size of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.