conn

rebuild index VS rebuild index online

create index and rebuild index on the original table will be added when the 4 locks on obj $ plus 3 locks to prevent DML operations on the original table create index online and rebuild index online using a temporary table to deal with new or to re-c ...

Set CURSOR_SHARING = SIMILAR things to note

alter table move experiment

Test the executable process in the move operation. Summary: 1. In the move process can execute queries, do not go away regardless of the index, but not for dml operations 2.move completed, the index into the UNUSABLE state, taking the index of the qu ...

PL / SQL Programming Minute

1. Basic operation SQL> sqlplus / nolog SQL> conn / as sysdba SQL> alter user hr account unlock SQL> alter user hr identified by hr SQL> grant DBA to hr SQL> conn hr / hr Select * from user_tables Select * from dba_tables SQL> re ...

The circumstances surrounding a transaction hang of living

Would like to test the next ora-01555 error, so the undo_retention set to 100. After the implementation of the conn scott / tiger create table t as select * from dept; Keep the insert revealed SQL> insert into t select * from t; 57344 rows created ...

Hang a transaction causes and consequences of living

Would like to test the next ora-01555 error, so the undo_retention set to 100. After the implementation of the conn scott / tiger create table t as select * from dept; Keep the insert revealed SQL> insert into t select * from t; 57344 rows created ...

Cross-border value of the query plan may affect the implementation of ORACLE

One problem: there is no value on the query plan may affect the implementation of ORACLE. Problems reproduced as follows: SQL> conn ysp / ysp Connected. SQL> DROP TABLE TEST PURGE; Table dropped. SQL> CREATE TABLE TEST (ID CHAR (8), COLNO VA ...

Remove non-JOB under current user

A few days ago when use of dbms_job.remove remove the job encountered ORA-23421 error: ORA-23421: job number string is not a job in the job queue Cause: There is no job visible to the caller with the given job number. Action: Choose the number of a j ...

exp, imp problem caused JOB

JOB when comparison in import and export special, met today did not expect a problem, just about collate records. JOB Oracle generated the id in the database is unique. All information is stored in the SYS JOB's JOB $ table, primary key ID genera ...

Remove non-JOB under the current user

A few days ago when use of dbms_job.remove remove the job encountered ORA-23421 error: ORA-23421: job number string is not a job in the job queue Cause: There is no job visible to the caller with the given job number. Action: Choose the number of a j ...

Correct modification and SYSMAN password DBSNMP

Correct modification and SYSMAN password DBSNMP DBSNMP password changes 1.Stop dbconsole 2.set new password for dbsnmp 3.test dbsnmp new password by connect 4.edit targets.xml Search for the line: <Property NAME="UserName" VALUE="6f ...

Using stored procedure or package dbms_profile positioning in low efficiency statement

/ * Create Date: 2010.6.28 Create user: Joshua zou Purpose: Use dbms_profile locate the stored procedure or package in a low efficiency statement Table: select * from plsql_profiler_data; select * from user_source; select * from plsql_profiler_units; ...

oracle 10g change the sysman password

Brief explanation: The reason is this: EM has its own configuration file emoms.properties, After you open will find these: oracle.sysman.eml.mntr.emdRepPwdEncrypted = TRUE oracle.sysman.eml.mntr.emdRepPwd = xxxx, xxxx, xxxx, xxxx This shows that the ...

Transfer: to grant permissions to the user should try to avoid ANY system privileges

Oracle recommends to grant permissions to users, giving users the minimum permissions to complete the operation. Should try to avoid ANY system that contains the user to grant privileges such as SELECT ANY TABLE, CREATE ANY TABLE and so on. These inc ...

utl_smtp example of sending mail

rnrnrnrn Send mail to create an instance of <br /> common Package: create or replace package xx_mail_api is procedure sendmail (p_err_buf out varchar2 , P_ret_code out number , P_sendor in varchar2 , P_recipients in varchar2 , P_subject in varchar2

Linux use in the history of the callback function SQLPLUS

In Linux, when using SQL * PLUS, history does not provide a callback function, and sometimes inconvenient. In order to use the Up and Down Arrow call history command, you can install rlwrap the software. rlwrap, the program itself is a Shell, you can ...

Oracle database character set changes

oracle database character set change A, oracle server-side character set query select userenv ('language') from dual Which is server-side character set NLS_CHARACTERSET NLS_LANGUAGE form for the server-side character display B, query oracle c ...

connection and the relationship between session

connection and the relationship between session 1. Official explanation: 1.1 connection: A connection is a physical path from a client to an Oracle instance. A connection is established either over a network or over an IPC mechanism. A connection is ...

Linux, Oracle9i RMAN backup and recovery steps to introduce

1, switching servers archive mode, if you have a file pattern can skip this step: % Sqlplus / nolog (start sqlplus) SQL> conn / as sysdba (to connect to the database as DBA) SQL> shutdown immediate; (now closed database) SQL> startup mount ( ...

Configuring Oracle database and monitoring system from the start with Linux

1. Set / etc / oratab testdb2: / opt/oracle/product/9.2.0: Y The last option should be changed from N Y 2. Test dbstart and dbshut command dbstart and dbshut will check / etc / oratab settings, if set to Y, then the implementation or off, if set to N ...

Configuration with Oracle database and monitor Linux systems from the start

1. Set / etc / oratab testdb2: / opt/oracle/product/9.2.0: Y The last option should be changed from N Y 2. Test dbstart and dbshut command dbstart and dbshut will check / etc / oratab settings, if set to Y, then the implementation or off, if set to N ...

(Transfer) shell circumstances call sqlplus example

1, the simplest shell in call sqlplus. $ Vi test1.sh #! / Bin / bash sqlplus-S / nolog> result.log <set heading off feedback off pagesize 0 verify off echo off conn u_test / iamwangnc select * from tab; exit EOF $ Chmod + x test1.sh $ ./test1.sh Sec

Modify the implied parameters _cursor_features_enabled

Oracle's a bug need to modify the hidden parameter ALTER SYSTEM SET "_cursor_features_enabled" = 10 scope = spfile; In this machine (version 10.2.0.1 of the) test, the prompt * Error Line 1: ORA-02065: illegal ALTER SYSTEM option In a 1 ...

The Oracle RMAN backup Study Notes

The Oracle RMAN backup Study Notes The Oracle RMAN backup Study Notes (Transfer from: http://lanmh.javaeye.com/blog/288830) 1. In linux. Find /-name rman displayed: / Home/oracle/product/10.20/sysman/admin/scripts/db/rman / Home/oracle/product/10.20/bin/r

oracle disable the operating system authentication login

oracle disable the operating system authentication login: WINDWOS Platform: To the oracle installation directory cd% ORACLE_Home% / network / admin directory, find a sqlnet.ora file (if not, you can manually create) Edit the following: # This file is ...

path environment variable causes the connection to the database Times ora-12560

Have a windows environment, filled with 10g database reports filed after the inspection log to the host about a dozen left a letter M into a archive file check to see if there are two instances instance of the situation, first cut the old archive to ...

Simple combination of an online redefinition to remove sub-partition partition example

TEST for the newly created user a user. SQL> CONN TEST / TEST Connected. First, create the appropriate combination of the partition table SQL> SET TIMING ON SQL> CREATE TABLE TEST 2 PARTITION BY RANGE (OBJECT_ID) 3 SUBPARTITION BY HASH (DATA ...

ORACLE10G AWR use and analysis

Oracle Database 10g provides a significant improvement tools: Automatic Workload Repository (AWR). Oracle recommends that users use this to replace Statspack. Oracle AWR is essentially a built-in tools, which collect performance-related statistics an ...

An automatic collection of statspack snap script

Although there spauto.sql can, but I still like to use this script to collect information, more intuitive rn rn #! / Bin / bash rn rn ORACLE_HOME = / u01/app/oracle/11.2 if [$ @-gt 1] then echo "bad usage" eliff [$ @-eq 1] then case "$ ...

How to determine whether the oracle instance is running

How to determine whether the oracle instance is running rn ORACLE instance starts, you must define ORACLE_SID. TOM on oracle ORACLE_SID explained that under the SID of the hash to uniquely determine the address of an instance. When we open sqlplus / ...

oracle import error IMP-00017: following statement failed

Import oracle of the exp file, this error message encountered the following: IMP-00017: following statement failed with ORACLE error 907: "ALTER TABLE" user_ITEM "MODIFY (" AVAILABILITY "DEFAULT '+'" IMP-00003: O ...

Oracle Database log files are missing line approach (summary)!

Oracle Database log files are missing line treatment Test 1: Clear the log using the command group method 1, see the original data in the table SQL>; conn test / test Connected. SQL>; select * from test; TEL ---------- 1 2 3 2, insert new data SQL&g

Linux systems RMAN backup and recovery steps

◆ 1, switching servers archive mode, if you have a file pattern can skip this step: % Sqlplus / nolog (start sqlplus) SQL> conn / as sysdba; (to connect to the database as DBA) SQL> shutdown immediate; (now closed database) SQL> startup moun ...

The oracle set to archive mode is the method

The oracle set to archive mode is the method First manually create archive directory, start adjusting the way oracle oracle set to archive mode Manually create the archive directory on the main server $ Cd $ ORACLE_BASE # $ ORACLE_BASE points to the ...

ORACLE create a user

ORACLE create a user SQL> CONN SYS AS SYSDBA Enter password: *** Connected. SQL> CREATE USER SMIS INDENTIFIED BY SMIS; CREATE USER SMIS INDENTIFIED BY SMIS * ERROR line 1: ORA-00922: missing options, or this option is invalid, please trouble yo ...

oracle OCCI's a simple wrapper class implementation

Oracle recent study of c + + programming interface, OCCI, he had made a simple wrapper class source code posted for your reference. This program has not been rigorously tested, only interested in actions, and all business so if you want to, need to f ...

Oracle Package in the wording and the call to return the cursor

Oracle Package What effect? Simplify the application design, to improve application performance, achieve information hiding, overloading subprogram. Here are some of the code package. create or replace package FirstPage is - Author: MECON - Created: ...

asp call orcle stored procedure (the process with output parameters)

The establishment of the table: SQL> create table CD_BILL_LOG 2 ( 3 BILL_ID NUMBER, 4 DEAL_EMP_ID NUMBER, 5 REACH_DATE DATE, 6 DONE_DATE DATE, 7 BILL_STATUS VARCHAR2 (10), 8 DEAL_DEPT_ID NUMBER, 9 SIGN NUMBER, 10 REMARK VARCHAR2 (50) 11) 12; Build ...

oracle9i began studying the problems in, winxp system

1, oracle92 installation if a clean machine, generally have their way, and finally through the dbca configuration. If you have previously installed oracle10client and so on, leading to environmental variables affect on oracle92 after, dbca tools such ...

Oracle instance server management and more

Today: colleagues reported that can not connect Oracle, an error message is: ORA-00257 archiver error. Connect internal only, until freed Oracle documentation perspective, because the log file filled the disk, log on to the server, a look, really ful ...

Export build sheet statement exp

rn rn Reprinted: http://xuehu2009.javaeye.com/blog/444820 rn Study: Happy Angel rn System environment: 1, the operating system: Windows 2000 Server, the machine memory 128M 2, Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition 3, the installati ...

How a user's access number (processes) to limit

Can use the profile to the number of each user's access be restricted. create profile ses_conn limit sessions_per_user n; n is the need to limit the maximum number of visits. Completed the profile and then assign it to users who need to limit the ...

APPLSYS the DR $ tables when prompted in the EXPORT table does not exist

rn Today ITPUB see a post on EXP, the question is as follows: rn http://www.itpub.net/showthread.php?s=&postid=5433382 # post5433382 rn Strange problem, the table does not exist there can export tips rn $ Exp system / manager parfile = parfile.tx ...

create or replace view

In the metalink note 116540.1 pointed out that if the create or replace view later, the view corresponding loss of privileges, it would be a bug. First of all: ask this question, the user a create a view v, give the user b: grant select on v to b, th ...

Table permissions error and recovery

Because of the lack of understanding of public authority, in a trial on the authority, I executed the following statement revoke select any table from public; caused serious consequences - all of the package failure! This morning, made a very stupid ...

9i, the online log bad, break the collapse of the database, non-filing

Given the non-archive mode, the current online log file is a bad approach. Problem Description: Help break through the collapse of the system, oracle9 get up, non-archive mode Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microso ...

Platitudes os authentication and password file authentication

oracle database through the sqlnet.ora file parameters SQLNET.AUTHENTICATION_SERVICES, PFILE (or SPFILE) file parameters REMOTE_LOGIN_PASSWORDFILE and password file PWDsid.ora three synergies to achieve authentication. SQLNET.AUTHENTICATION_SERVICES ...

About the password with special characters

rn rn SQL> conn tes9 /"!@#$%^&*()_+=-'/?;:' \ +-_;'@" Connected. SQL> rn In addition to not use double quotes, the other will do rn

logminer installation and use of

LOGMINER tool is installed in front of here is a brief introduction to SYS user to perform the following two script A: $ ORACLE_HOME / rdbms / admin / dbmslm.sql, used to create DBMS_LOGMNR package SQL> @ dbmslm.sql Package has been created. Succe ...

[Database] command line to create oracle text index and sample tasks

Command line to create oracle text index and the task of sample Founder Li Shouliang 2004 1 to dba as the user on the ctxsys unlock, set password sqlplus / nolog conn / as sysdba - The ctxsys user to unlock, set password ALTER USER "CTXSYS" ACCO
Recent
Recent Entries
Tag Cloud
Random Entries
Latest Comments