Methods for modifying database fields

-- At work, we often encounter temporary needs to modify the table fields in the database.-- Here I will introduce the methods and hope to help you.Create table class_use(Id number (19 ),Name varchar2 (50 ),Birthday Date default sysdate,Age number (1

Example of using scheduler in oracle

Create table T_TEST_JOB (id long, TEST_DATE TIMESTAMP (6 )) tablespace GBIAPS pctfree 10 initrans 1 maxtrans 255 storage (initial 64 minextents 1 maxextents unlimited); -- create a sequence of create sequence SEQ_TEST_JOB minvalue 1 maxvalue 99999999

Statements you should know about ORACLE

The statements you should know in ORACLE are frequently used. We should remember that, however, the human brain is not a computer, and we may regret them when we forget to use them, so we will record them one by one, there will also be traces for

Declares a stored procedure for returning a cursor

Declare a stored procedure for returning a cursor 1. Declare a dynamic cursor type in the header. TYPE ref_cursor_name is ref cursor; 2. Define Dynamic CURSOR variables in the output parameters of the stored procedure to be declared. Create or

String separated by commas (,) into a collection)

String separated by commas (,) to create or replace function "GET_STR_TAB" (v_str in varchar2) return table_str pipelined as v_new_str varchar2 (8000 ); begin if v_str is null then pipe row (-1); else v_new_str: = replace (v_str, chr (10), ''), chr (

How to Write redolog in oracle lgwr

How Does oracle lgwr write redolog? For example, an instance has only one redo thread, that is, an LGWR, right? However, if a log group contains three log members, how can an LGWR be written to the three log members at the same time?Obviously, it

Oracle_DAY 03 operation statement

Oracle_DAY 03 operation statement 1. use a subquery to query who is a common employee: select first_name, id from s_emp where id in (lead id); select first_name, id from s_emp where id in (select distinct manager_id from s_emp); select first_name,

Review database creation and modification

The creation and modification of the audit database are divided into four steps * // * Step 4: create a temporary tablespace */create temporary tablespace user_temp tempfile 'd: \ oracle \ oradata \ Oracle9i \ user_temp.dbf 'size 50 m autoextend on

Oracle stored procedure Note --- DUAL

Oracle stored procedure Note-DUAL in oracle, we sometimes need to determine whether a string contains a string. First, oracle provides us with the instr function: instr (string1, string2 [, start_position [, nth_appearance]) parameter analysis:

Database Learning (7) -- use the WHERE clause to query records that meet the conditions in the table

Database Learning (7) -- use the WHERE clause to query records that meet the conditions in a table (6) -- basic query operations http://www.bkjia.com/database/201305/207495.html When using SQL statements for query operations, developers or users are

Oracle partition by and partition by... order by grouping

Oracle partition by and partition... order by grouping partition by and partition... difference in order by usage. I just used it. Confused: Table t a B C 1 43 2013-4-17 2 33 2013-4-18 3 10 2013-4-17 use partition by: When rank () is used, use order

Delete Oracle in linux

Delete Oracle in linux. 1. log on with an oracle user. If you want to install Oracle again, you 'd better back up the data first. The script includes the user's login script, the script for automatic database startup and shutdown, and the script for

Delete all objects under the current oracle user

Delete all objects under the current oracle user SQL code --. SQL script-the only note is the following D: \ dropobj. SQL is the operation. SQL; -- used to delete all objects of the current user -- use for drop all objects in current user; set

Oracle indexing technology-Daily notes (1)

Oracle indexing technology-daily note (1) database indexing combines the column values of interest to users with their row Identifiers (ROWID) the ROWID that is stored together contains the index of the physical location of the table row storing the

A series of problems occurred after dbid Modification

After modifying the dbid, a series of problems occur. Environment: OEL + Oracle11.2.0.3 Problem description: as a result of the Backup recovery test, according http://www.bkjia.com/database/201305/209268.html , Changed the dbid of the test database,

[Oracle] maddening ORA-01555 Problems

[Oracle] The first thing to note about the maddening ORA-01555 problem is that a ORA-01555 error is a "secure" error that won't cause data loss or corruption, only make the query that receives this error Unable to continue, therefore, in the routine

[Oracle] About Lock and Latch

[Oracle] Let's Talk About Lock and Latch. First, let's talk about what they have in common: they are essentially an exclusive Lock on resources, all caused by concurrency (if the database has only one session, ). Next, let's talk about their

Application of loop in plsql

Plsql loop application begin -- two single quotes replace one double quotation mark execute immediate 'create table T (nnn varchar2 (20) default ''aaa') '; end; drop table T; in PLSQL, the judge branch and loop eg: Get the salary of 7369 of the

Greenplum available space computing

Greenplum available space computing greenplum theory available database space: Configure mirror: database_size = usable_disk_space/(2 + 1/3) (greenplum needs to reserve some space for the workspace) not configured with mirror: database_size = usable_

Solve Oracle Installation Bug in Solaris

Solaris, the Oracle Bug solving platform for solaris, reports the error message oracle10202: Terminate the output from the derivative process. Information: ---------------------------------- information: The operation encountered an exception error:

Total Pages: 2147 1 .... 1896 1897 1898 1899 1900 .... 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.