First, if it is just deleted, then there are two ways:
First with show parameter undo; command to view the database parameter undo_retention settings at that time.
The display is as follows:
Copy Code code as follows:
Instead of using a select in a stored procedure like SQL Server, Oracle can return a result set, which is returned by a result set of an out type parameter. is actually using ref CURSOR
Copy Code code as follows:
--procedure returns the
Syntax for adding fields: ALTER TABLE tablename Add (column datatype [default value][null/not null],....);
Modify the syntax of the field: ALTER TABLE tablename modify (column datatype [default value][null/not null],....);
Syntax for deleting a
In this case, the automatic growth column refers to the automatic growth of the primary key ID in a table.
Unlike MySQL, Oracle cannot set the automatic Growth column feature when create tables.
Oracle must create a sequence sequence to automate
1.
The SYS user has DBA authority and has the SYS mode to log in to the database only through SYSDBA. is the highest-privileged account in the Oracle database
System has DBA authority. But no SYSDBA permissions. Usually use this account to manage
An Oracle cursor is divided into a display cursor and an implicit cursor.
Display cursor (Explicit Cursor): A cursor defined in a PL/SQL program, used for querying, is called a display cursor.
Implicit cursors (implicit Cursor): A cursor that is
The concept of partitioned tables
Partitions are committed to resolving key issues that support large tables and indexes. It uses the method that they decompose into smaller and manageable slices called partitions (piece). Once a partition is
Kill Oracle Online users and use root to execute this script on Oracle's serverParameter description for this Oracle user
Copy Code code as follows:
#!/bin/sh
function _oracleplus () {
Su-oracle-c "$oraclehome/bin/sqlplus/nolog" Connect/
first, log in to the database, create the table User00 in the database, and insert the data .
The fields of the table are:
Id (number), name (name), Grid (level), Score (integral), Password (password), age (Ages), Code (invitation code). (where
The following summarizes the MySQL conversion Oracle several points of attention, I hope to help.
1. Automatic growth of data type processing
MySQL has an automatically growing data type, and the data value is automatically obtained when you
If Oracle unfortunately encounters undo corruption in operation, the best approach is full recovery, but if there is no backup, you can take an unconventional approach (taking advantage of the hidden parameters of Oracle) and If Undo contains
In the development process, often encountered a number of tests, this time will want to understand the process of testing, and then based on the process to analyze the code is wrong, in this case, you need to use a custom exception, you need to know
1, in the report page layout corresponding position to add a text box, generally for download
Right-click the Pl/sql Editor to write a hyperlink and add the following:
Copy Code code as follows:
Function B_13formattrigger Return
Complete deletion of Oracle databases under Linux OS details:
1. Turn off Oracle server and background processes
Ps-ef | grep ora
Shut down the database.
Shutdown immediate
2. Turn off the monitor.
Lsnrctl status
If it's open, execute Lsnrctl
Dbms_random is a random function package provided by Oracle, here are some common examples of dbms_random:
Dbms_random.value usage:
Generates a 38 decimal number that is greater than or equal to 0, or less than or equal to 1
Copy Code code as
1, first set up a directory :
Create directory directory name as ' a directory on the database server ', such as:
Create directory alias as ' d:\ server directory name ';
Put the imported or exported files in this directory
2, Export and
The following error is always reported today when manually configuring ORACLE11G's EM:
Warning:ora-00001:uniqueconstraint (Sysman. Parameters_primary_key) violated
Ora-06512:at "Sysman. Emd_loader ", line4986
Ora-06512:atline1
There is no solution
I have a strange question today:Use Sqlplus on the client to log on as a normal user, but neither system nor SYS users can log on, prompting Ora-12154:tns: Unable to resolve the specified connection identifierSql> Conn System@webdataEnter
The total number of fields queried for a table in Oracle, using SQL statements, or in Pl/sql
Copy Code code as follows:
Select COUNT (column_name) from user_tab_columns where table_name= ' T_b_auditor '
The number of fields
There are several types of tables in Oracle:1, the heap organization table (heap organized tables):Commonly used table types, managed in heaps, use the first free space in the segment to fit the data size when data is added, and when data is deleted,
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