Depending on the characteristics of the Oracle database and the tools provided, the main methods are as follows:
Tables that use logical backups to lose data using the Import tool
Use physical backups to restore data files and perform
Overview
Procedures and functions in pl/sql, often called subroutines, are a special type of pl/sql blocks that can be stored in a database in a compiled form and invoked for subsequent blocks.
Same point: A program that completes a specific
Actual work, will inevitably encounter serial number generation problem, the following is a simple serial number generation function
(1) Create a custom serial number configuration table as follows:
--Custom Sequence
CREATE TABLE S_autocode
Both date and timestamp are available for addition and subtraction operations.You can manipulate different time types for the current date Gagnin, month, day, hour, minute, and second, with three ways:
1 using built-in functions numtodsinterval add
/*
Little brother just contact Oracle stored procedures, there is a problem to colleagues to consult, younger brother wrote a stored procedure, the purpose is to receive a parameter as a table name, and then query the table of all records in one
Methods 1:x:\oracle\ora81\bin\wrap iname=xxx Oname=xxx
Method 2:9i uses wrap to encrypt stored procedures under Win2000, 10g can use encrypted packets dbms_ddl.wrap or dbms_ddl.create_wrapped.
11.5.1 uses wrap to encrypt stored procedures under
Oracle's analytic functions are very powerful and have been used frequently over the years. This time you will often use the analysis function to sort out, for future viewing.
It's easier to understand that we learn from cases.
1, build the table
After the launch of JDBC4.0, its features from many are being widely concerned. Here's a way to show you how to manipulate data for BLOB types in Oracle JDBC4.0.
The jar package you need
Using Ojdbc6.jar
In/meta-inf/manifest. MF can see
Ora-12541:tns when connecting to an Oracle server with a client tool such as Pl/sql Developer: No listener error, as shown in the following figure:
It turns out that the Oracle Monitor did not start and the connection was successful after the
This article illustrates the method of Oracle to implement row and column conversion. Share to everyone for your reference, specific as follows:
1, the row and column conversion of fixed number
Such as:
Student subject Grade
---------------
Was told that test user was locked on login
1, with the DBA role of the user login, to unlock, set the specific time format in order to view the specific time
Sql> alter session set nls_date_format= ' Yyyy-mm-dd hh24:mi:ss ';
Session
The examples in this article describe the use of Oracle stored procedure cursors. Share to everyone for your reference, specific as follows:
5 Steps to use a cursor
1. Declare some variables to hold the point returned by the SELECT statement2,
First, take a look at SQL Server, before we both select a start time and an end time (in the smallest unit of day) from the foreground user and then query as a condition, if directly through "between StartTime and Endtime" as a condition, Discovery
How do I build the best index?
1. To create an index explicitly
CREATE INDEX index_name on table_name (field_name)
tablespace tablespace_name pctfree
5
Initrans 2
Maxtrans 255
Storage
(
minextents 1
maxextents 16382 pctincrease
0
)
Nonsense not to say, directly to everyone to write SQL statements, of course, there are many kinds of writing, I also just to share one of the solutions, have different views of the can leave a message oh.
Oracle's password is valid for a period of
In the process of database management, the data table is often the user's unreasonable operation caused the table to be locked, the following describes how to find which tables are locked by which users, and how to unlock:1. Find locked tables:
The principle of deadlockwhen you perform an update or delete operation on a column of a table in a database, the statement does not mentionHand, another statement that updates the data for this column will be in the waiting state when executed,At
Racle uses foreign keys to restrict the referenced field values in the child table, requiring that the data in the child table be present in the primary table. When a foreign key reference unique constraint value changes when the record of the
First, design backgroundBecause of the company's Oracle database, traditional manual monitoring table space is time-consuming, and can not record the historical table space data, can not judge the daily table space growth, in the absence of
I have long wanted to write my own Oracle functions and triggers, and recently a small case from a textbook has given me this opportunity. Now write down what I have done as a reference for a memo or an entry-level friend.
Case Description:
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