Example script for creating a database using the oracle command line

Oracle command line to create a database sample script [SQL] set echo on spool D: \ oracle \ app \ admin \ ocp11g \ sctripts \ cteatedb. log startup nomount pfile "D: \ oracle \ app \ admin \ ocp11g \ sctrpts \ init. ora "; create database" ocp11g

New Feature of Oracle11g: replace variables in the RMAN script

New Feature of Oracle11g: a new feature is provided in the RMAN script using the replace variable Oracle11g, which is used in the RMAN script. Today, I did a small experiment on the server and tried this feature. Although some errors have been made,

SQL does not take indexes due to inconsistent data types

A few days ago, my colleague sent an SQL statement because the SQL statements caused by inconsistent data types did not go through the index. It was said that the SQL statement was executed slowly during the update operation. I checked that the data

Introduction to oracle SQL * PLUS

Introduction to oracle SQL * PLUS 1: sqlplusSQL * PLUS is an interactive and batch query tool. It is the most basic oracle database utility and uses a basic command line interface, it is usually used by users, administrators, and program developers.

Query whether a stored procedure exists in oracle

Query whether a stored PROCEDURE has select distinct name from USER_SOURCE where type = 'processed' and name in ('ts _ ZM_WMQYJLJGMYMSZMSQB ', 'ckts _ zm_dljkhwzmsqb ', 'ckts _ ZM_CKHJCPMSZMSBB ', 'ckts _ done', 'ckts _ done', 'ckts _

Restoration of oracle log files and control files corruption

Recovery steps for oracle log files and control files corruption: 1. add _ allow_resetlogs_upload uption = true, _ uploupted_rollback_segments = true, _ offline_rollback_segments = true, start to nomount2. use the backup of the control file to

Error while loading shared libraries processing records

Error while loading shared libraries processing record RHEL5.3 after Oracle11g is installed, start sqlplus to report an error [oracle @ RHEL53-213 ~] $ Sqlplus/as sysdbasqlplus: error while loading shared

Search for the current scn value in oracle flashback

Oracle flashback searches for the current scn value 1. find the current scn value SELECT dbms_flashback.get_system_change_number from dual; assume the returned value is 140856480 2. count or view the record of the current scn value SELECT count (*)

Recovery from replicated upted mysql replication

Recovery from corrupted mysql replication directly copies the wiki of the company I edited. Relay log resume uption example: You can get error info after SHOW SLAVE STATUS; Last_Error: Relay log read failure: cocould not parse relay log event entry.

Oracle concatenates values of different columns into a string

Oracle concatenates values of different columns into a string [SQL] -- using the concatenation operator "|" or CONCAT, concatenate values of different columns into a string -- Method 1: select s. TEAM | '**' | S. NAME | '**' | S. JOB_NUMBER from

Confusing Oracle recursive query (start)

Confusing Oracle recursive query (start with) when writing code, you need to understand the transfer relationship between Oracle's role. If role A exists, you can grant A to B, grant A to B and grant B to C. then I want to know which role has the

Oracle object operation example

Oracle object operation example select * from v $ version; /* BANNER Upgrade Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production PL/SQL Release 11.2.0.1.0-Production CORE 11.2.0.1.0 Production TNS for 64-bit Windows: version 11

Use of Table functions in Oracle

Use of Table functions in Oracle -- 1. table and array use example create or replace type t_test as object (id integer, rq date, mc varchar2 (60); create or replace type t_test_table as table of t_test; create or replace function f_test_array (n in

Six Methods for Oracle generation Sequence

Six methods for generating sequences in Oracle [SQL] Method 1: sys @ ORCL> select level from dual connect by level select rownum from dba_objects where rownum select to_number (column_value) n from xmltable ('1 to 5'); N ---------- 1 2 3 4 5

Identifies unused Indexes

Some Indexes do not need to be used for identifying unused indexes. However, when you modify a table, the indexes are automatically modified, reducing the database speed. Next we will make a simple experiment to monitor whether the index is used.

DBA should pay attention to some operations in the Linux environment

DBAs should pay attention to the operating DBA's dependency on OS in Linux, which is no less than DB, especially for Oracle DBAs, and the increasing feelings of DB and OS, and the high coupling between them. for example, Oracle, fault diagnosis,

Oracle string Split

Oracle string Split 1. CREATE an array SQL code create or replace type T_RET_TABLE is table of VARCHAR2 (512) 2. CREATE a string segmentation FUNCTION SQL code CREATE OR REPLACE FUNCTION F_SPLIT_STRING (AS_STR VARCHAR2, AS_SPLIT VARCHAR2) RETURN

How oracle ensures read consistency

Oracle read consistency principle 1: The concept of undo segment when the database is modified, you need to save the old data to a place and then modify it, the segment used to save the old data is the undo segment. Previously, old things can be

Oracle functions: intercept and merge

Oracle functions: intercept and merge Java code select to_char (t. create_time, 'yyyy-mm-dd') as date _, remark, substr (t. remark, 1, 4) as yyyy, substr (t. remark, 5, 2) as dd, (case when substr (t. remark, 7, 2) = '00' then' 01 'else substr (t.

Validate database and datafiles

Validate database and datafiles DB_BLOCK_CHECKSUM is a database initialization parameter that controls the writing of checksums for the blocks in datafiles and online redo log files in the database (not backups ). if DB_BLOCK_CHECKSUM is typical,

Total Pages: 2147 1 .... 1899 1900 1901 1902 1903 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.