The content of this article mainly comes from: http://lbyzx123.javaeye.com/blog/829235
1. Create the script file Oracle10g under/etc/init. d/with the following content:
#! /Bin/bash
# Whoami
# Root
# Chkconfig: 345 51 49
Oracle creates a table that automatically adds a primary key // creates a table
Create Table T (Pk Number Primary Key, name varchar2 (20 ));
// Create a sequenceCreate sequence t_seqIncrement by 1Start with 1 maxvalue 999999999;
// Create a
1. Log On with the system and SYS accounts
2. Create a userCreate User Username identified by PWD default tablespace users;Create username, password PWD, and allocate table space.
3. Authorize a userGrant connect, resource to username; (other
If the Oracle database table contains a Date Field, assume that the field name is time, the date to be inserted is now, now is in string format, and the value is "1900-01-01 ", the following statement fails to insert data:
String. Format ("insert
Oracle data block principle in-depth analysis of data blocks (Oracle data blocks), referred to as blocks in this article, is the smallest storage unit of Oracle, Oracle data is stored in the block. A block occupies a certain amount of disk space.
TablespaceCan be classified in four ways
1. data files are classified:
Big file tablespace)This is10gNew FeatureSmall file tablespace (smallfile tablespace)This is the default value during creation.
Advantages of large file tablespaces include:
Front-end UI process (written in vc6) to UTF-8 Chinese to back-end serviceProgram(Linux GCC). The data is written to the Oracle database in the background, and then the data is retrieved and displayed in the background. No encoding/decoding
1. Automatically increasing data type ProcessingMySQL has a data type that increases automatically. When you insert a record, you do not need to operate on this field. The data value is automatically obtained. Oracle does not have an auto-increasing
1. =========create text index authorization for mode with document tables
=== Connect to the database as a system user and authorize zyfileup.
Grant "ctxapp" to "jdcdc ";Alter user "jdcdc" default role all;Grant execute on "ctxsys". "ctx_adm" to
Oracle 11.2 command line manual and simplest database creation processThe process of manually creating a database using the command line
Environment: RHEL 5.4x86, Oracle 11.2
1. Set Environment VariablesEdit in/home/Oracle#. Bash_profile
# Get the
When my colleague retrieved the database, it was Oracle 10 Gb. The previous deletion method was Delete. I do not know whether to use trancate.
The SCN (System Change number) is spelled as system change number, which is a very important data
Functions are the same as functions and views in SQL Server classification.
-- Search fields to be set: expertname, expertdomain, hitcountsdata, workhistory, eduhistory, projecthistory, award, researchpaper, researchpapermonograph, expertallinfo--
IMP username/password file =/home/newbak. DMP full = y imp alpha/123456 file =/home/db20120308.dmp full = ysql> grant create user, drop user, alter user, create any view, drop any view, exp_full_database, imp_full_database, dBA, connect, resource,
Description
1. parameter descriptionCold_back_dir: Cold Backup DirectoryScript_file: the path and name of the batch file generated by this CodeLOG_FILE: path and name of the backup log fileInt_pwd: password of the internal userSave the generated SQL
Generate primary key values using sequences.
Sequence is a database object that can be used by multiple users to generate a series of unique numbers. Sequence definition is stored in the data dictionary. You can use sequence to automatically
The following is the Code implemented by myself, which is also the answer found through the network, so do it well to share it:
Daobean = new daobean (); // Database handler classString SQL = "select pic from tz_photo"; // read large field files,
SQL * loader is large dataRepository selection method, because it provides the fastest way (direct, parallel ). Now, let's leave aside its theory and use instances to makeYou can quickly learn how to use SQL * loader.First, let's get to know SQL *
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