A database can contain data tables of multiple applications. Tables of different applications can be stored in different schemas,At the same time, each schema corresponds to one user, and different applications can connect to the database with
1. Two Ways to delete table dataA. Delete * From my_table;B. truncate table my_table;
2. Delete the entire tableDrop table my_table;
How can we recover tables accidentally dropped? In fact, Oracle also has a similar "recycle bin"
For example, you
Oracle is installed on your machine, and the systems you usually write are connected to it.
I suddenly couldn't connect to Oracle the day before yesterday. JDBC always reports an error, but I can use PL/SQL.
A lot of errors have been thrown, and
The default "&" in SQL * Plus indicates the substitution variable. That is to say, as long as the symbol appears in the command, SQL * Plus requires you to enter the substitution value. This means that you cannot input a string containing this
Well, I have not fully studied sqldev, but it is not very convenient to use in a few places. I found that I can modify the shortcut key to correct it.
1,CodeSmart completion prompt
All the shoes that have used eclipse are used to using ALT +/,
The preparedstatement.exe cutebatch method calls a void executeforrows method at the underlying layer for execution. They are very lazy. to reuse this method, they lose the returned value, therefore, you cannot know what the current statement
I have been dealing with Oracle clusters recently, and I have also referred to the online materials, mainly focusing on using the thin method and OCI method. Today (it has passed 12 points and should be said that it was only yesterday, haha) I
One of the show_space versions written by Tom is commonly used for Bucket analysis.
create or replace procedure show_space(p_segname in varchar2, p_owner in varchar2 default user,
1 move Experiment
SQL> Create Table my_objects_move tablespace assm as select * From all_objects where rownum
Table created
SQL> select Value
2 from V $ mystat, V $ statname
3 where V $ mystat. Statistic # = V $ statname. Statistic #
4 and V $
1 move Experiment
SQL> Create Table my_objects_move tablespace assm as select * From all_objects where rownum
Table created
SQL> Create index I _my_objects_move on my_objects_move (object_id );
Index created
SQL> Delete from my_objects_move where
1. Use SQL * Plus to stop a database
1.1 stop an instance
[Oracle @ standby1 ~] $ Sqlplus/nolog
SQL * Plus: Release 10.2.0.1.0-production on Wednesday June 11 17:53:02 2008
Copyright (c) 1982,200 5, Oracle. All rights reserved.
SQL> Conn/As
I. handling process
1. Find the locked database table and related Sid, serial # And spid:
Select object_name as object name, S. Sid, S. Serial #, P. spid as system process number
From v $ locked_object L, dba_objects o, V $ session S, V $ PROCESS
After establishing an Oracle database, you must properly configure the listener and Network Service name before your application can access our database. Therefore, listeners must be configured on the server, and network service names can be
To_char converts a date or number to a string to_date. in the database, the date type conversion function to_number converts the character to a number to_char. The to_char function is used to process the number to_char (number, 'format') to_char
Oracle has the ability to enable a low-level tracking function.
Once the trace file is enabled, Oracle will record a lot of valuable information.
The tkprof tool is used to convert these trace files into readable formats.
1. Enable tracking
Alter
I bought this book from Dangdang in, because it was written by Tomas Kyte. However, I didn't do Oracle-related projects at the time, and I lacked an environment for testing Oracle scripts. This book is a very practical book, if I do not perform the
Pseudo Columns
APseudo ColumnBehaves like a table column, but is not actually stored in the table. You can select from pseudo columns, but you cannot insert, update, or delete their values. This section describes these pseudo docolumns:Currval and
Comments
You can associate comments with SQL statements and schema objects.
Comments within SQL statements
Comments within SQL statements do not affect the statement execution, but they may make your application easier for you to read and maintain.
Analysis of Oracle-vpdOracle permission control uses the dbms_rls package of Oracle to implement data access control in most systems. Permission control is mainly defined as the module access permission Control and Data column access permission
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