Tags: ora-00604 ora-38301Today, we need to make room on this machine, found that Oracle has a DBF file accounted for about 30G, the data file corresponding to the user usually rarely used, and then want to handle it-delete table space operations.The native database is a 32-bit 10.2.0.1.0, and table space has several table data for TEST_TB. Start with the DBA role of the system user, directly executeDrop tablespace TEST_TB including contents and datafi
Db2 uses hints (guidelines) like oracle)Db2 uses hints (guidelines) C: \ DB2> more f3.sqlSELECT d like oracle. DEPTNAME, e. FIRSTNME, e. lastnamefrom department d, employee ewhere d. DEPTNO = e. workdept and e. empno like '123 '/*
*/;C: \ DB2> C: \ DB2> db2expln-d sample-f f3. SQL-g-t-z ";"DB2 Un
This example describes the use of the jquery hints effect. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
$ (function () {$ (". ToolTip"). MouseEnter (function (e) {This.mytitle=this.titleThis.title= ""var a= "$ ("Body"). Append (a);$ ("div"). css ({"Top": (E.pagey + y) + "px","Left": (E.pagex + x) + "px"}). Show ("Fast")}). mo
When importing data using the IMPDP data pump in Oracle, if you have already created a user before importing, you will be prompted with an error: "ORA-31684: Object type already exists", such as:In fact, this problem is not serious, you can not create a user, import when you specify a Super user import:impdp system/123456@ORCLDIRECTORY=DUMP_EXPDUMPFILE=EXPDATA.DMP remap_schema=SOURCE_USER:DEST_USERThis will not cause a ORA-31684 error, and the user "
Because the B*tree index does not store null values, some Oracle queries do not use indexes when the indexed field is allowed to be empty.
Most of the time, it appears that we can use a full index scan, which may give Oracle the chance to discard the index because of the existence of the null value (Scan).
In this case, the index is not used even with hints,
Reprint Please specify source: http://blog.csdn.net/dongdong9223/article/details/47448751This article is from "I'm a fish-hook blog."
When importing data using the IMPDP data pump in Oracle, it is assumed that the user was created before the import, prompting the error: "ORA-31684: Object type already exists." Such as:In fact, this problem is not serious, can not create a user first, import when you specify a Super user import:impdp system/123456
A simple example shows Oracle's "selfless" robustness, and the example oracle is selfless.
Oracle's strength lies in its ability to always help you choose the right execution plan, even if you give it wrong instructions.
Lab:
1. Create a test table:
Collect statistics:
Create a B-Tree Index:
2. Execute select id from tbl_plan; to view its execution plan:
Oracle Database Array Operation example, oracle Database example1. Create a bean object
1 -- CREATE bean object 2 create or replace type "fm_flowcphdtswjimpbean" as object3 (4 wf_no varchar2 (256), 5 wf_priority_level varchar2 (256) 6)2. Create a bean-based array
1 -- CREATE a bean-based array 2 create or replace type "FM_FLOWCPHDTSWJJIMPARRAY" is table of FM_FLO
Oracle simple script example, oracle example
Oracle simple script example
1. Add a table
-- Modified on: 2014.09.21
-- Modifier: Yi xiaoqun
-- Modified: added the purchase payment form.
DECLARE
VC_STR VARCHAR2 (5000 );
VN_COUNT NU
Oracle job creation example, oracle job example-- 1. Learning jobs in plsql-- Learning job-- Create a tableCreate table test_job (para_date date );Commit;Insert into test_job values (sysdate );Commit;Select * from test_job;-- Establish the storage processCreate or replace procedure test_jobproceBeginInsert into test_jo
Oracle C #ImplementationOracle Text full-Text searchThe simple example is what we will introduce in this article ,. A simple example of using C # to implement full-Text retrieval of Oracle Text in. NET is designed to get a preliminary understanding of the general steps of full-Text retrieval of
Oracle materialized view code example, oracle Materialized View
Materialized View of Oracle
Recently, oracle materialized views have been updated based on the project business needs. You can search for information on this topic on the Internet to facilitate improvement. The
Oracle Database hot backup and recovery and example, oracle Database
Manual Hot Standby (Database opening status)
Backup control file:
Alter database backup controlfile to '/u01/oradata/prod/con. bak1 ';
Back up data files (here pl/SQL is used for batch processing, and the query results can be pasted and run)
BeginFor I in (select tablespace_name from dba_tablesp
Oracle uses a single cursor to insert data. For example, oracle cursor
Original works, from "Deep Blue blog" blog, deep blue blog: http://blog.csdn.net/huangyanlong/article/details/47143731Background
Recently, some friends asked me how to insert multiple pieces of data into the target table in a single way. To solve this problem, let's make a small experiment.
T
Oracle lock table troubleshooting example: Oracle lock table troubleshooting
One time a developer directly runs the delete table operating system on the database server during peak hours, resulting in no response for a long period of execution. Then, the SQLPLUS client is closed and the delete statement is run again, this causes the database to run slowly.The que
Example of mutual conversion between ORACLE milliseconds and dates, and oracle mutual conversion
Convert millisecond to date
SELECT TO_CHAR(1406538765000 / (1000 * 60 * 60 * 24) + TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH:MI:SS'), 'YYYY-MM-DD HH24:MI:SS') AS CDATE FROM DUAL;
Date conversion in milliseconds
SELECT TO_NUMBER(TO_DATE('2014-07-28 17:12:45', 'YYYY
Oracle SQL uses with recursive analysis (for example) and oracle Recursion
The WITH recursion provided by Oracle is not just a repetition of tree-like queries. In fact, recursive WITH statements can provide more flexible tree-like Query functions.
The following describes the CYCLE statement. This statement not only su
'), 'day') from dual; // MondaySelect to_char (to_date ('1970-08-26 ', 'yyyy-mm-dd'), 'day ','Nls _ DATE_LANGUAGE = American ') from dual; // Monday// Set the date languageAlter session set NLS_DATE_LANGUAGE = 'American ';// You can alsoTO_DATE ('1970-08-26 ', 'yyyy-mm-dd', 'nls _ DATE_LANGUAGE = American ')
4. Days of the two-day periodCopy codeThe Code is as follows:Select floor (sysdate-to_date ('20140901', 'yyyymmdd') from dual;
5. Use a time of nullCopy codeThe Code is as follows:Select id,
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.