I am wrong. I am really wrong... accidentally cleared the content of the four basic data tables... Now N more screams...
Contact Se, and Se made a flash back... directly back to the time point before the operation... really handsome... keep the
Notify@mail.cnblogs.com wrote:Sender: light rainEmail: zy@ez-galaxy.comTitle: consultMessage content: How to save long text in Oracle ?? A table cannot have two clob, long, or blob ?? For example, in a forum, If you want others to input more content,
Oracle undo management tipsOracle tips by Burleson ConsultingMay 4, 2010
Question:What are some tips for managing Oracle undo?
Answer:Here are my notes onGeneral undo Management
AndUndo Management in RAC
,
Here are other undo
Declare
V_ SQL varchar2 (1000 );
Cursor cur is select 'alter table "'| t1.table _ name |'" RENAME to '| Upper (t1.table _ name) as sqlstr
From user_tables T1
Where table_name <> upper (table_name)
And not exists (select 1 from user_tables T2
Technorati label: Oracle
-- Create the directory dir_dump as a sys user and save the file to this directory.SQL> create directory dir_dump as '/data/cmssdb ';Directory created.-- Authorize the read and write permissions of the corresponding
OracleHow to display all current user tables
Show all tables of a user (for example, Scott, uppercase is required)
Select table_name from all_tables where owner = 'Scott ';
Show all current user tables
Select * From user_tables
Display All Tables of
Install Ubuntu 10.10on Windows 7. download and run wubi.exe to install the software on any disk.
Install oracle in Ubuntu... Hard work! But it's okay! I found a lot of information and made a lot of detours. The summary is as follows:
First,
Note: 1) Simple Example 2) Non-pure codefirst, more is the combination of dbfirst + codefirst. 3) you only need to use the latest version of odac in Oracle, and no third-party drivers are required. Web applications require web. config configuration.
In archive mode, Oracle copies a full log file to a specified place. This process is called archiving, and the copied log file is called archiving logs.
1. Set the database to archive
Query database log mode through archive log list
SQL> archive log
A control file is a binary file that is automatically created when a database is created. It is used to record the database name, creation time, tablespace name, data file, and log file location. The control file is very important to the database.
I. control file backup
When the database structure changes, immediately back up the control file. Once the control file fails, you can use backup to restore it.
There are two backup control file methods:
1. Copy directly
Example:
SQL> alter Database
To access the database through JDBC, you can obtain the table, table column, view, index, and primary key database object through the getmetadata () method of the connection object, but it does not provide a foreign key object, the following
Alter any cluster: modify the permissions of any clusterAlter any indexAlter any role Modify permissions of any roleAlter any sequenceAlter any SnapshotAlter any tableAlter any trigger
Alter cluster Modify permissions on clustersAlter Database:
1. view the table space name and size.
Select T. tablespace_name, round (sum (Bytes/(1024*1024), 0) ts_size
From dba_tablespaces T, dba_data_files d
Where T. tablespace_name = D. tablespace_name
Group by T. tablespace_name;
2. view the name
Environment:
Oracle 9.2.0.8, AIX 5.3ml5 64bit;
Table A is a partitioned table that stores about records. The table's tablespace is not in assm mode;
Scenario Description:
Because the operations on the table are very frequent, the I/O waits
Basic Environment:
Sqlplus '/As sysdba'
Alter system set aq_tm_processes = 2 Scope = both; // do not set it to 0 or 10. This may disable queue monitoring and affect the memory usage of the stream pool.
Alter system set global_names = true scope =
There are many application projects. At the beginning, MySQL Databases can basically meet various functional requirements. As the number of application users increases and the amount of data increases, MySQL gradually becomes overwhelmed: the
Description:
1. rownum is the number of the row returned from the query in the Oracle system. The first row is allocated 1 and the second row is 2,
This pseudo field can be used to limit the total number of rows returned by the query.
2. rownum
In our actual work, we often encounter background Oracle database environment migration and do not know if there is a problem:1. Do I know if anything is missing when the development environment is migrated to the actual environment?2. Do you know
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service