In the recent work has encountered the production Environment database table was deleted, in fact, such things should not have happened.A few small suggestions:
Production environment database developers can only have query permissions,
First, System log and database log Patrol1. System LogTail-500f/var/log/messagesSee if there are any alarms or errors2. Database log10G DatabaseCD $ORACLE _base/admin/{sid}/bdump---{SID} is a DB instance nameTAIL-500F Alert_{sid}.logCheck the
SQL Code--Delete empty tablespace, but no physical fileDrop Tablespace tablespace_name;--Delete non-empty table spaces, but not physical filesDrop tablespace tablespace_name including contents;--Delete empty table space, including physical filesDrop
1, the computer installed Access database around 25M2. To create an ODBC data source, select OracleC:\Windows\SysWOW64\odbcad32.exe3. Open the. mdb file you want to importRight-click Table--"Export"Export ODBC Database", the table name must be all
A stored procedure is called with Oracle's job, such as a stored procedure that is trapped in a dead loop or other cause, and the status of the job is always running. At this point, the stored procedure is called manually, and the stored procedure
I set a user ID field in Oracle to the number type, and using JDBC to complete the ORM, I thought it could be automatically converted to integer, because my Pojo class ID is an integer. But the fact is, when I was testing, I found all the user ID is
Original: http://www.jb51.net/article/31805.htmExample:CREATE OR REPLACE procedure"Insert_month_batterydata_month" ( Year inch Number , MONTH inch Number) as Day varchar2( +):=0; I Number( -);begin--Select(Add_months (To_date (
If the system tablespace file is missing, it can be restored if there is a backup condition. The database needs to be set to mount state and then Restore/recover datafileSimulation Experiment:Sql> select name from V $ datafile;NAME-------------------
Find an interesting question today,We know that the normal execution of select Sysdate from dual in the Oracle database can return the system time of the current host.When the system time is changed normally, the corresponding query result becomes
SQL1: --1, view the name and size of the tablespaceSELECT T.tablespace_name, round (SUM (Bytes/(1024x768)), 0) ts_sizeFrom Dba_tablespaces T, Dba_data_files DWHERE T.tablespace_name = D.tablespace_nameGROUP by T.tablespace_name;--2, view the name
1. ASH (Active sessionhistory)Ash is based on v$session, sampling once per second, recording events waiting for an active session. Inactive sessions are not sampled, and sampling work is done by the newly introduced background process MMNL.The
1Adaptive cursor sharing adaptive cursor sharing or extended cursor sharing (Extended cursor sharing) is one of the new features of Oracle 11g, mainly used to resolve previous versions Because the binding variable snooping causes the SQL statement
First, easy to use--no more than one main number bound to multiple line outputs (like mobile fun online)SELECT F.town_name Town District,F.school_name School,F.class_name class,F.student_name student,B.phone Main Number,B.bindphone-bound
Triggera database trigger is a table-associated, storedPL/SQLprogram. Whenever a specific data manipulation statement(Insert,update,delete)when emitted on a specified table, theOracleautomatically executes the sequence of statements defined in the
--Create TABLE space permissionsGrant Create tablespace to QJT--Delete Table space permissionsGrant DROP tablespace to QJT--Create TABLE spaceCreate Tablespace QjttestDataFile ' F:\app\QiuShao\oradata\orcl\qjt_1.dbf ' size 10m,'
Returns 1-31, or 1-12, or aSelect RowNum From dual Connect by rownum Is connect byhttp://marcospring.iteye.com/blog/1721600Oracle gets a list of months between a time periodGet a list of months between a time period (example returns a list of months
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