-- 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
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
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 (,) 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 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 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,
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 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 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... 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. 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 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 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
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] 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] 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
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 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_
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:
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