×

strcpy函数实现 函数 c

怎样实现strcpy函数?Oracle数据库的安装过程

admin admin 发表于2022-06-22 04:02:12 浏览121 评论0

抢沙发发表评论

怎样实现strcpy函数


#include《stdio.h》
void fun(char *t,char *s) { 
  while ( *s!=0 ) { *t=*s; t++; s++; } //也可以写成:while ( *s ) *t++=*s++;
  *t=0;
}
void main() { char s0,s1;
  scanf(“%s“,s0);
  fun(s1,s0);
  printf(“%s\n“,s1);
}

Oracle数据库的安装过程


一、准备安装
基本都是按部就班。
使用的OS版本:OEL4 [oracle@ractestorcl]$cat/etc/redhat-releaseEnterpriseLinuxEnterpriseLinuxASrelease4(OctoberUpdate5)[oracle@ractestorcl]$cat/etc/enterprise-releaseEnterpriseLinuxEnterpriseLinuxASrelease4(OctoberUpdate5)安装程序路径:
/mnt/Oracle11g_linux_x86_64/database
创建用户 groupadd-g1001dbagroupadd-g1002oinstalluseradd-u10000-gdba-Goinstall,dba-d/home/oracle-s/bin/bashoraclechownRoracle:dba/home/oracleusermod-gdba-Goinstall,dbaoracle使用的.bash_profile exportORACLE_BASE=/home/oracleexportORACLE_HOME=$ORACLE_BASE/11gexportORA_CRS_HOME=$ORACLE_BASE/crsexportORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/adminexportORACLE_SID=orcl1exportPATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:${PATH}:$HOME/binexportPATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/binexportPATH=${PATH}:$ORACLE_BASE/common/oracle/binexportORACLE_TERM=xtermexportTNS_ADMIN=$ORACLE_HOME/network/adminexportORA_NLS10=$ORACLE_HOME/nls/dataexportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib:$ORACLE_HOME/oracm/lib:$ORACLE_HOME/libexportLIBPATH=$LIBPATH:$ORA_CRS_HOME/lib:$ORACLE_HOME/libexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOME/network/jlib:$ORACLE_HOME/JREexportTHREADS_FLAG=nativeexportTEMP=/tmpexportTMPDIR=/tmpexportNLS_LANG=american_america.WE8ISO8859P1exportDISPLAY=10.198.90.55:2aliassysdba=“sqlplus’/assysdba’“exportEDITOR=vi修改的核心参数:
kernel.shmall = 2097152
kernel.shmmax = 2 147483648
kernel.shmmni = 4096
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
使用xclock检查display正确:
代码: [oracle@ractest~]$xclock[oracle@ractest~]$/mnt/Oracle11g_linux_x86_64/database[oracle@ractest~]$cd/mnt/Oracle11g_linux_x86_64/database[oracle@ractestdatabase]$ls-ltotal 10
drwxr-xr-x 4 1003 oinstall 96 Mar 23 18:45 doc
drwxr-xr-x 5 1003 oinstall 1024 Mar 23 18:45 install
drwxr-xr-x 2 1003 oinstall 1024 Mar 23 18:45 response
-rwxr-xr-x 1 1003 oinstall 1251 Mar 23 18:45 runInstaller
drwxr-xr-x 12 1003 oinstall 1024 Mar 23 18:45 stage
-rw-r--r-- 1 1003 oinstall 4638 Mar 23 18:45 welcome.html [oracle@ractestdatabase]$./runInstallerStarting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9,
redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from
/tmp/OraInstall2007-06-28_02-26-12AM. Please wait ...
[oracle@ractest database]$ Oracle Universal Installer, Version 11.1.0.2.0 Production
Copyright (C) 1999, 2007, Oracle. All rights reserved.
Oracle Universal Installer, Version 11.1.0.2.0 Production
Copyright (C) 1999, 2007, Oracle. All rights reserved.
启动图形以后选择basic&n
选择oracle base的时候,oracle不推荐使用user home作为oracle base,这里我选yes忽略
进行prerequirements检查的时候,安装程序认为swap不足,我选择YES忽略
执行提示脚本,安装完毕
代码: [oracle@ractestdatabase]$[oracle@ractestdatabase]$su-rootPassword:[root@ractest~]#/home/oracle/oraInventory/orainstRoot.shChanging permissions of /home/oracle/oraInventory to 770.
Changing groupname of /home/oracle/oraInventory to dba.
The execution of the script is complete [root@ractest~]#/home/oracle/11g/root.shRunning Oracle 11g root .sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/11g
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root .sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
安装完毕。


HTML5 的 hidden=“hidden“ 和CSS的 display:none有什么区别


性能上没有差异之分,hidden=“hidden“ 这种写法浏览器在解析的时候实际上是按 display:none 的这种样式去解析的,解析为不渲染内容直接隐藏掉;

以下拿 Google 浏览器为例: