1. Use the expdp command to back up data on the 11g Server
Expdp userid = 'sys/cuc2009 @ cuc as sysdba 'schemas = sybj directory = DATA_PUMP_DIR dumpfile = aa. dmp logfile = aa. log version = 10.2.0.1.0
The red text is rewritten as needed. For
Recently, when inserting data, I encountered the BUG of "ORA-01461: Can only assign values to the LOGN values of the inserted LOGN columns ". The data type in oracle is varchar2 (4000 byte). The inserted data cannot exceed 4000. Changes to varchar2 (
1 Overview
(In a session) when the transaction starts: When the database encounters the first DML (UPDATE/INSERT/DELETE/MERGE) statement.
(In a session) when the transaction ends: the transaction ends at the first COMMIT/ROLLBACK/DDL/GRANT/REVOKE.
Insert multiple tables.Most insert operations are for a single table. However, oracle supports insert statements for multiple tables. In terms of data warehouse extraction, transfer and loading (ETL, Extract Transform and Load) routines, you will
Consider this scenario: when a task waiting for processing is added to a database table, the PROCESSED_FLAG column of the table has only two values: Y and N. This column value is N (not processed) for records inserted into the table ). When other
Today, a user's database suddenly finds that all clients cannot connect. However, sysdba users can log on normally;
First, it is suspected that someone has set the database to the silent mode.
Log on to the database on the server, check
The customer requested that the historical data in the database of the two projects on the current network be cleaned up recently, so he sorted out the section usage in the next application, mainly to view the table section. The script used is as
There is an overhead space (overhead) at the beginning of the database block, which stores a transaction table for the block. For each "actual" transaction that locks some data in the block, there is a corresponding entry in this transaction table.
1. When using Oracle, Oracle can run normally by starting OracleServiceMYORCL and OracleOraDb11g_home1TNSListener;
2. To allow hosts on the LAN to access your oracle database, you must start the oracleora81homemanagermentserver service.
Note:
If you do not enable index monitor, you can determine whether the index has been used. If you want to know whether an index has been used, the traditional method is to enable index monitor. However, this method has two shortcomings: (1) it will
DBA Note: SQL _TRACE is a background news publishing system used to track and diagnose cases. The main performance problem is that it is extremely slow to access news pages through connections, which usually takes more than 10 seconds to return,
Oracle up/down keys prompt history when Oracle in linux is used, its up/down keys by default do not prompt historical records. Therefore, we need to install an additional package, this package can achieve this function 1: Install readline (usually
Oracle replaces a specific string keyword in clob: replace, dbms_lob.instr Step 1: Determine whether clob contains a specific string: for example, "/admin/ewebeditor/uploadfile/" Keyword: dbms_lob.20.code:
[SQL] select st. id, st. content from
After flashback drop, if the tablespace is insufficient, you can directly Delete the table occupied by the table in the recycle bin. After the demo DROP table, you can also find the table from the recycle bin, however, in DBA_FREESPACE, the space of
A shallow summary of oracle log miner Sometimes, we shocould recover one or more rows data which is deleted carelessly by users, but it is not necessary to recover the whole db and the flashback does not recovery the data because it's timeout. for
Database optimization subtotal optimizes database tables related to XX businesses on Monday night. Cause: there are 4 tables in total, with a small data size, a minimum of 0.4 million records, a maximum of 3 million, and a size of no more than 300
Oracle database 10g falshback knowledge1. Knowledge reserve 1) when the media is damaged (such as the loss of data files), any flash back method is useless and can only perform standard backup, restoration, and recovery. 2. SCN record method [SQL]
Cast (,) CAST, a data type conversion function in Oracle, explicitly converts a data type expression to another data type.
Syntax: CAST (expression AS data_type) CAST (ytd_sales AS char (20) Example: declare @ I intset @ I = 0 while @ I
Create
When oracle detects rollback for the remaining time to operate the oracle database, a large transaction needs to be rolled back, which is very slow. It depends on how long it takes to roll back. Find the following SQL statement on the
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