Stored procedure: A program that changes the state of a database object and can contain one or more behaviors, often by processing a record of one table and then putting it in another table.
1. Basic grammar:
CREATE [OR REPLACE] PROCEDURE
The main problem is that the character encoding of the Oracle client software is inconsistent with the server-side character encoding.Oracle Service-side character encoding is: ZHS16GBKThe Oracle client character encoding is: WE8ISO8859P1There are
Method One:ALTER TABLE old_table_name RENAME to New_table_name; (Uppercase to System command)Method Two:Sql> select tname from tab;Tname------------------------------TESTsql> rename test to temp;Table renamed.Sql> select tname from tab;Tname---------
First of all, you should understand that the object of the flashback deletion is simply a table, it allows you to restore the previously deleted table to the state before it was deleted, as well as to restore all indexes and any permissions and
To create a procedure object (procedural object), you must have the Create PROCEDURE system permission. If this process object needs to be used by other user schemas, then you must have the CREATE any PROCEDURE permission. You may need to excute
/*********************************************
Toracleviewpagev 2.0
Date: 2000-9-23
Pagination displays classes for Oracle database records
Renew Date: 2000-10-19
Increases the ability to display Toprecord, allowing the first page to display a
Considerations for MySQL to Oracle program migration
2001-09
There are many application projects, just started with the MySQL database can basically achieve a variety of functional requirements, with the increase in application users,
The increase
Oracle empty table SQL statements and truncate and delete differences
TRUNCATE TABLE [name]
Remove or cluster all rows from the table using the TRUNCATE statement. By default, the Oracle Database tutorial also performs the following tasks:
The
To import the actual application data into the Oracle database tutorial, first open the Access database, select the table you want to import, and overwrite the table name with the individual column names (the table name and the column name will be
First, users
View the default table space for the current user
Sql>select username,default_tablespace from User_users;
View the role of the current user
Sql>select * from User_role_privs;
View system and table-level permissions for the current
Sql> set timing on; Set display ' Used Time: XXXX '
Sql> set Autotrace on-; setting allows profiling of executed SQL
Sql> set trimout on; Remove the trailing spaces for each line of the standard output by default off
Sql> set Trimspool on; Remove
The Blob field in Oracle is special. It has much better performance than the long field and can be used to save binary data such as images.Writing Blob fields is very different from writing other types of fields. Because Blob itself has a cursor,
An oracle database in the company at the startup of the error ORA-27102: out of memory, specific as follows:Symptom: alter system set sga_max_size = 12884901888 scope = spfile --- (12G)Appears:SQL> startup forceORA-27102: out of memoryLinux-x86_64
The customer has a 10 Gbit/s RAC environment. Due to an occasional requirement, a 11 Gbit/s database needs to be temporarily started. After we mount the 11 Gbit/s software volume and datafile volume, the database of 11 GB can be started normally,
String ConnectionString = "user id = ordtrc; pwd = ordtrc; data source =" FRAME2DB "; persist security info = False;"; // write a connection stringOracleConnection conn = new OracleConnection (ConnectionString); // create a new
These functions allow you to access the Oracle8 and Oracle7 databases. They use the Oracle8 point-of-use interface (OCI8). To use this extension module, you need the Oracle8 client library file.This expansion module is smoother than the standard
We often use an ID automatically assigned by the system as our primary key when designing a database. However, this feature is not available in ORACLE.You can use the following functions to automatically add ids.1. First create sequenceCreate
Oracle does not support limit similar to MySQL. However, you can still use rownum to limit the number of rows in the returned result set.If you only want to return the first 10 records, you can write as follows:SELECT * FROM table where rownum
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