6666
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了6666相关的知识,希望对你有一定的参考价值。
[[email protected] app]# cat dbca.rsp RESPONSEFILE_VERSION = "11.2.0" OPERATION_TYPE = "createDatabase" GDBNAME = "orcl11g.us.oracle.com" SID = "orcl" TEMPLATENAME = "General_Purpose.dbc" SYSPASSWORD = "sinaDB123" SYSTEMPASSWORD = "sinaDB123" DATAFILEDESTINATION =/home/oracle/app/oradata CHARACTERSET = "ZHS16GBK" NATIONALCHARACTERSET= "AL16UTF16" DATABASETYPE = "OLTP" AUTOMATICMEMORYMANAGEMENT = "TRUE" TOTALMEMORY = "10240" SOURCEDB = "dbserver:1521:orcl" SYSDBAUSERNAME = "system" TEMPLATENAME = "My Copy TEMPLATE" SOURCEDB = "orcl" TEMPLATENAME = "My Clone TEMPLATE" SOURCEDB = "orcl" TEMPLATENAME = "New Database" GDBNAME = "orcl11.us.oracle.com" DB_UNIQUE_NAME = "orcl11g.us.oracle.com" NODELIST= SYSDBAUSERNAME = "sys" DB_UNIQUE_NAME = "orcl" INSTANCENAME = "orcl" SYSDBAUSERNAME = "sys" [[email protected] app]# cat db_install.rsp oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME=dbserver UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/home/oracle/oraInventory SELECTED_LANGUAGES=en,zh_CN ORACLE_HOME=/home/oracle/app/product/11.2.0/db_1 ORACLE_BASE=/home/oracle/app oracle.install.db.InstallEdition=EE oracle.install.db.isCustomInstall=false oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0 oracle.install.db.DBA_GROUP=dba oracle.install.db.OPER_GROUP=oinstall oracle.install.db.CLUSTER_NODES= oracle.install.db.config.starterdb.type=GENERAL_PURPOSE oracle.install.db.config.starterdb.globalDBName=orcl oracle.install.db.config.starterdb.SID=orcl oracle.install.db.config.starterdb.characterSet=AL32UTF8 oracle.install.db.config.starterdb.memoryOption=true oracle.install.db.config.starterdb.memoryLimit=512 oracle.install.db.config.starterdb.installExampleSchemas=false oracle.install.db.config.starterdb.enableSecuritySettings=true oracle.install.db.config.starterdb.password.ALL=sinaDB123 oracle.install.db.config.starterdb.password.SYS=sinaDB123 oracle.install.db.config.starterdb.password.SYSTEM=sinaDB123 oracle.install.db.config.starterdb.password.SYSMAN=sinaDB123 oracle.install.db.config.starterdb.password.DBSNMP=sinaDB123 oracle.install.db.config.starterdb.control=DB_CONTROL oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL= oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false oracle.install.db.config.starterdb.dbcontrol.emailAddress= oracle.install.db.config.starterdb.dbcontrol.SMTPServer= oracle.install.db.config.starterdb.automatedBackup.enable=false oracle.install.db.config.starterdb.automatedBackup.osuid= oracle.install.db.config.starterdb.automatedBackup.ospwd= oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=FILE_SYSTEM oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=FILE_SYSTEM oracle.install.db.config.asm.diskGroup= oracle.install.db.config.asm.ASMSNMPPassword=sinaDB123 MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= SECURITY_UPDATES_VIA_MYORACLESUPPORT= DECLINE_SECURITY_UPDATES=true PROXY_HOST= PROXY_PORT= PROXY_USER= PROXY_PWD= [[email protected] app]# cat netca.rsp RESPONSEFILE_VERSION="11.2" CREATE_TYPE="CUSTOM" INSTALLED_COMPONENTS={"server","net8","javavm"} INSTALL_TYPE=""typical"" LISTENER_NUMBER=1 LISTENER_NAMES={"LISTENER"} LISTENER_PROTOCOLS={"TCP;1521"} LISTENER_START=""LISTENER"" NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"} NSN_NUMBER=1 NSN_NAMES={"EXTPROC_CONNECTION_DATA"} NSN_SERVICE={"PLSExtProc"} NSN_PROTOCOLS={"TCP;HOSTNAME;1521"} [[email protected] app]# cat listener.ora LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521)) ) ) ADR_BASE_LISTENER = /home/oracle/app [[email protected] app]# cat tnsnames.ora ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 47.92.107.220)(PORT = 1521)) ) (CONNECT_DATA = (sid = orcl) ) ) [[email protected] etc]# cat oratab orcl:/home/oracle/app/product/11.2.0/db_1:N [[email protected] etc]# cat fstab UUID=41b13286-90d7-4c0f-9afb-ba92382eda59 / ext4 defaults 1 1 /home/swap_sina swap swap defaults 0 0 /dev/vdb1 /data/mongodb ext4 defaults 1 1 Tomcat在Linux中启动卡死 第一次遇到Tomcat在Linux服务器启动卡住的情况,情况很简单,tomcat启动以后卡在INFO: Deploying web application directory ...... 解决办法: 永久:oracle 说修改 $JAVA_HOME/jre/lib/security/java.security 文件,替换securerandom.source=file:/dev/random 为 securerandom.source=file:/dev/urandom。 对所有使用JVM的应用生效。(这个永久的方法,这里面有个问题,就是设置时候实际应该设置为securerandom.source=file:/dev/./urandom,否则不生效) MongoDB 创建 Database 和 Collection 在开始使用MongoDB(Version:3.2.9)之前,必须首先在MongoDB中创建 Database 和 Collection。Database是相互独立的,每个Database都有自己的Collections,不同的database中,可以存在名字相同的collection,但是Database不是物理存储单位,MongoDB以Collection为物理存储单位,每个collection都有自己的数据文件和index文件,这些文件以 .wt 结尾。 一,创建Collection 1,查看当前database中的collection列表 show collections 2,隐式创建Collection 在MongoDB中,Collection相当于关系型数据库的Table,用户不需要显式定义Collection就能向Collection插入数据。在第一次向Collection插入数据时,MongoDB会自动创建Collection;如果Collection已经存在于Database中,那么MongoDB直接向Collection中插入数据。 db.foo.insert({_id:1,name:"test"}) 3,显式创建Collection 使用 db.createCollection() 显式创建Collection,通过指定Collection Option,创建特定用途的Collection。 Because MongoDB creates a collection implicitly when the collection is first referenced in a command, this method is used primarily for creating new collections that use specific options. 例如,创建固定集合(Capped Collection),普通集合能够自动增长以容纳更多的doc,但是固定集合有最大的size,容纳的doc不能超过限制(max选项)。 db.createCollection("log", { capped : true, size : 5242880, max : 5000 } ) 4,删除collection,调用collection的drop方法删除collection db.collection_name.drop() 二,创建database 1,查看MongoDB的database列表 show dbs 查看当前连接所在的Database db 2,使用use 命令创建database use my_database_name MongoDB返回以下信息,use 命令只是向MongoDB注册database,并没有实际的创建使用show dbs 查看,列表中没有该database。 switched to db my_database_name 3,在当前database中创建collection,并向集合中插入数据 db.foo.insert({_id:1,name:"test"}) 此时,MongoDB真正创建database,查看存储数据的folder,发现多了两个.wt文件,一个用于存储数据,一个用于存储index。使用show dbs 查看,列表中存在该database。 三,删除database 删除database时,必须十分小心,除非用于测试环境,否则,不要轻易使用这个命令 1,使用use命令,切换到指定的database use database_name 2,使用db命令,查看当前database,避免删错 db 3,删除当前database Oracle性能调优之网页端开启EM管理工具1158端口 [[email protected] zones] firewall-cmd --zone=public --add-port=1158/tcp --permanent [[email protected] etc]$ cd firewalld/ [[email protected] zones]# firewall-cmd --state [[email protected] zones]# firewall-cmd --list [[email protected] zones]# firewall-cmd --list-all [[email protected] zones]# curl localhost:1158/em [[email protected] zones]# firewall-cmd --reload [[email protected] zones]# su oracle [[email protected] ~]$ emctl start dbconsole [[email protected] ~]$ emca -config dbcontrol db -repos recreate Database SID: orcl Do you wish to continue? [yes(Y)/no(N)]: y [[email protected] ~]$ emctl start dbconsole [[email protected] ~]$ emctl status dbconsole https://192.168.120.149:1158/em/console以上是关于6666的主要内容,如果未能解决你的问题,请参考以下文章