1. The insert format is.
/**
* Write a time Method
*/
Public staticStringgetStringDate (){
Date d = new Date ();
SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd ");
Return sdf. format (d );
}
Insert:
Art. setArtAddTime (java. SQL. Date.
Lab environment:Red Hat Enterprise Linux Server release 5ORALCE 10g 10.2.0.1
I. Disk planning and partitioningMy lab machine has three hard disks, sda, sdb, and sdc. Sda is only used to install the operating system and application software. sdb is
Requirements:
1. Create chinache_0726 (chinacache _ date) in the test database every day );
2. process the log file 13039_20100722_w3c according to the table structure and insert the result to the created table;
The awk function is not just a simple
(1) srvctl status database-d dbservername
Oracle @ zjgldb2 $ srvctl status database-d kms
Instance kms1 is running on node zjgldb1
Instance kms2 is running on node zjgldb2
(2) crs_stat-t
Oracle @ zjgldb2 $ crs_stat-t
Name Type Target status host
----
This article focuses on the combination of two MySQL commands. It will create a new data table with the same structure and data based on the original data table.
This helps you quickly copy tables as test data during development without having to
One thing that should have been simple and smooth, but encountered a lot of trouble in the actual process. For a new linux user, it is very easy to get stuck, so simply write it down, in this way, we can make progress every day!
There is a
[Problem description]1. garbled characters are displayed for file names containing Chinese Characters in Linux;2. Use the vi editor to view Chinese characters with garbled characters;3. sqlplus enters the database to view Chinese characters with
After MySQL is compiled and installed, it cannot be started properly. Example:
Prompt 'can't connect to local MySQL server through socket '/tmp/MySQL. sock'
I have read that this file does not exist, but if MySQL is started properly, it should be
Recently developed a J2EE project, using the database is Oracle, the test process found that occasionally there is a ORA-01461 can bind a LONG value only for insert into a LONG column exception thrown, at first, an exception was thrown because the
Due to development needs, MySQL 5.5.9 needs to be installed and installed now. There are always errors when rpm is used, and there are still a lot of troubles related to the issue. In addition, no Binary Package is found, I had to find the source
This example is created based on ASMLib or a bare device.
1. Install the support packages required by asmA. Download the support package from the Oracle Website: hereB. Download the corresponding asm installation package based on the Linux
Hibernate tuning is not just about setting lazy, but about who maintains this field.
This time we want to optimize the query statement -- select new map ().
Description of the select new map statement.
Statement 1:
String hql = "select s. name from
No time to check the same configuration of the Oracle database on a daily basis. Later, it was discovered that the master database did not synchronize archiving logs to the slave database because the slave database was not enabled after power
Since Oracle9i, Oracle is no longer simply a relational database management system. It adds a series of object-oriented features based on the relational database model. Oracle9i is known as object-oriented database. Oracle's object system complies
Follow
Finally, the Oracle installation is complete:
Check the dependency package before installation:
Rpm-q gcc make binutils setarch compat-db compat-gcc-c ++ compat-libstdc ++-devel unixODBC-devel libaio-devel sysstat
There are missing yum
Xtrabackup is widely known. If xtrabackup is used for remote backup, most of the time is spent on network transmission. Inspired by orzhou master tar + lz4/pigz + ssh for faster data transmission, edge compression and edge transmission can be used:
1. Create a table with an empty eygle
2. Create a user's eygle, which belongs to the eygle tablespace; grant the user the DBA permission
3. log on to the database as an egyle user and create the table test_egyle.
4. rman backup the egyle
Install Oracle 10g technical documents in CentOS
Step 1: run the following command as the root user to create a user, group, and set the password.
/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
/Usr/sbin/useradd-m-g oinstall-G dba oracle
Id
System: Ubuntu 12.04 LTS
MySQL version: 5.5.35-0ubuntu0. 12.04.2 (Ubuntu)
Step 1: Download MySQL Workbench
: Http://dev.mysql.com/downloads/tools/workbench/
After selecting the system version at the bottom of the page, you can download it.
Step
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