UNIX timestamp is the number of seconds since '2017-01-01 00:00:00 'GMT, expressed as an integer.
The time in Oracle is date type. The following functions provide two Oracle functions for time conversion.
(1) converting from UNIX timestamps to
Unfortunately, someone accidentally deleted the created table ,,,
Fortunately, you can recover it in this way.
Select * From user_recyclebin where original_name like 'finance _ % 'order by droptime DESC;
Flashback table finance_case_fee_item
Table space name and status information:
Select * From dba_tablespaces;
Table space creation statement:
Select dbms_metadata.get_ddl ('tablespace', ts. tablespace_name)
From dba_tablespaces ts;
---- View the tablespace information of
Environment: Oracle 11g, win7, 64bit
Problem: The software needs to be uninstalled when oracle is not properly installed or re-installed. However, the oracle11g cancels the interface uninstallation and changes to the deinstall. BAT file for
174./* + all_rows */
It indicates that the overhead-based optimization method is selected for the statement block, and the optimal throughput is obtained to minimize the resource consumption.
For example:
Select/* + all + _ rows */emp_no, emp_nam,
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;
A A zero space------------------------------------65 97
Document directory
What is FRA?
If FRA is full, online logs cannot be archived.
When I started the database this morning and found that the database was not opened, I checked the database status:
SQL> select open_mode from V $
Set OperationsSet Operators---- MergeUnion/Union all
---- IntersectionIntersect
----Minus
Set Operation Specifications-The select list of the Two Queries must match the number of queries.-The data type of each column in the second query must match
Source: http://www.xifenfei.com/1570.html
Event
Description
Example
Event 10013-monitor transaction recovery
Tracking transaction recovery at startup
Alter session set events '10013 trace name context forever, level 1
Questions about Oracle Stored Procedure
1. in Oracle, the data table alias cannot be added with as, for example:
Select a. appname from appinfo A; -- correct
Select a. appname from appinfo as a; -- Error
Maybe you are afraid of conflicts with the
These methods can also be used to import data in other formats to Oracle. Here, we only use Excel as an example.
Method 1: use SQL * Loader
This is a lot of methods, as long as the target table already exists in Oracle Data.The general steps are as
It takes too long to log on to the database using the default password. If you do not want to remember the password, you can use the following method to change the Sys user password and use sqlplus to log on to sqlplus/As sysdba. After you log on to
1. Set the initialization parameter job_queue_processes.SQL> alter system setjob_queue_processes = N; (n> 0)Job_queue_processes: the maximum value is 1000. View the Job Queue background processSQL> select name, description fromv $ bgprocess; 2.
SQL> select 1-(physical. Value-direct. Value-lobs. Value)/logical. value)2 "buffer cache hit ratio"3 from V $ sysstat physical, V $ sysstat direct, V $ sysstat lobs, V $ sysstat logical4 where physical. Name = 'physical reads'5 and direct. Name =
Trigger usage tutorial and naming rulesContentsTrigger usage tutorial and naming convention 11. Trigger Introduction 12. Trigger Example 23. Trigger syntax and function 34. Example 1: one row-Level Trigger 45. Example 2: Row-Level Trigger 2 46.
Oracle Database Windows/Unix differencesDifferences between Oracle databases in Windows/UNIX environments
This chapter lists major differences between Oracle database on Windows and UNIX. for Oracle database developers and database administrators
Sequence and trigger in Oracle
Sequence:
Sequence(Sequence) is a serial number generator. It can automatically generate serial numbers for rows in the table and generate a set of equal-interval values (in the type of numbers ). Its main purpose is
(1) Oracle field addition Syntax: alter table table_name
Add (column_name column_type); Comment: table_name: Table Name
Column_name: field name
Column_typeto field type;
Example: alter table student add (age Number (5 ));
(2) oracle adds non-null
After a long period of learning to create Oracle tablespaces, I would like to share with you that you will certainly have a lot of gains after reading this article. I hope this article will teach you more things.
1. First query free space
1
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