1, the design of the banking system of the two Tables
create TABLE T_user (
accountnum varchar2 () primary key,
username varchar2 (),
Password VARCHAR2 (6),
balance number (8,2),
datetime date default sysdate
);
CREATE TABLE t_history (
hid
A sequence is a database object that can be used to generate a unique integer. You typically use sequences to automatically generate primary key values.
1) Establish sequence command
CREATE SEQUENCE [user.] Sequence_name[Increment by n][Start with N]
Please enter user name: Sys/sys as SysdbaERROR:Ora-01031:insufficient Privileges
Please enter user name: System/system as SysoperERROR:Ora-01031:insufficient Privileges
SYS, the system user is unable to log on and shows no permissions:
Sql>
Procedure returns the recordset:
CREATE OR REPLACE PACKAGE pkg_test
As
TYPE Myrctype is REF CURSOR;
PROCEDURE Get (p_id number, p_rc out myrctype);
End Pkg_test;
/
CREATE OR REPLACE PACKAGE body pkg_test
As
PROCEDURE Get (p_id number, p_rc out
1, to detect the rollback segment contention
Select sum (gets), sum (Waits), sum (Waits)/sum (gets) from V$rollstat;
The sum (Waits) value should be less than 1% of the sum (gets) valueThe contention of the rollback segment will degrade the
The time spent preparing new SQL statements is the most important component of the execution time for Oracle SQL statements. But by understanding the mechanism within Oracle to generate execution plans, you can control the amount of time that Oracle
1. Nls_lang parameter compositionThe Nls_lang parameter consists of the following sections:Nls_lang=_.
The meaning of each part of the Nls_lang is as follows:Language specify:Language used by-oracle messages-month and day display in dateTerritory
Oracle startup times wrong ORA-00600: Internal error code, parameters: [Kcratr1_lostwrt], [], [], [], [], [], [], []
This may be due to illegal shutdown or power off, following are the problems and solutions:
C:/Documents and
Solution: If this warning appears, the table space is not enough, you should add data files to the tablespace or increase the size of the data file that is already in the table space.
More detailed: Cannot create
1, view the user's proifle is that, is generally default:sql>select username,profile from dba_users; 2. View password expiration settings for the specified profile (such as DEFAULT): Sql>select * from Dba_profiles s WHERE s.profile= ' DEFAULT ' and
Preface: About oracle9i Data export and import problem, toss me for a long time, especially import. Today, under the guidance of a colleague, is finally successful, in order to remember the help of this colleague, here only "Kun" as a
Oracle Parallel parallel execution Operations
2009-08-22 17:16:08| Category: System Management Technology | reporting | font size subscription
Introduction: The Oracle Parallel feature has not been a concern for the past. A few days ago a brother
In Oracle sequence is called the serial number, each time it will automatically increase, generally used in the need to order by serial number of places.
1, Create Sequence
You must first have create sequence or create any sequence
1 Check Database connection information
2 Check the query's table name
3 View the permissions of the table and whether the currently logged on user has query permissions for the table.
4 ORACLE queries automatically convert uppercase so the
First access to Oracle website, link address: https://www.oracle.com/cn/downloads/index.htmlSlide into the interface and click Java in all DownloadsClick to enter and then navigate to the relevant Java download locationThe interface then slides to
Oracle 10G Installation Guide1, unzip the file 10201_database_win32.zip, and double-click the Setup.exe directory, the installation interface appears as follows:2, Enter the password and confirm the password, such as:password, click Next, the
1. Exception Classification: System exceptions, custom exceptions(1) System exceptions, see related API documentation(2) Custom exceptionsDefine your own exceptions: As with custom variables, the type is exceptionException thrown: Use raise to throw
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