oracle 23ai(23.5.0.24.07)完整功能版安装体验

最近oracle 发布了for exadata、oda以及云端的oracle 23ai版本,今天在x86环境中进行了安装测试,安装环境非常顺利,基本上按照安装需求配置好,然后一路下一步(注意选择不创建库)即可
ORA23AI-install


dbca创建库会遭遇到ORA-27350
ora-27350

由于我这是普通的x86环境,需要设置_exadata_feature_on参数来骗过数据库,参考:ORA-12754: Feature ‘startup’ is disabled due to missing capability ‘Runtime Environment’
最终效果

[oracle@xifenfei ~]$ ss

SQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Sat Jul 27 07:30:36 2024
Version 23.5.0.24.07

Copyright (c) 1982, 2024, Oracle.  All rights reserved.


Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.5.0.24.07

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
BANNER_FULL
--------------------------------------------------------------------------------
BANNER_LEGACY
--------------------------------------------------------------------------------
    CON_ID
----------
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud an
d Engineered Systems
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud an
d Engineered Systems
Version 23.5.0.24.07

BANNER
--------------------------------------------------------------------------------
BANNER_FULL
--------------------------------------------------------------------------------
BANNER_LEGACY
--------------------------------------------------------------------------------
    CON_ID
----------
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud an
d Engineered Systems
         0


SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORA23AI/system01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/system01.dbf
/u01/app/oracle/oradata/ORA23AI/sysaux01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/sysaux01.dbf
/u01/app/oracle/oradata/ORA23AI/users01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/undotbs01.dbf
/u01/app/oracle/oradata/ORA23AI/undotbs01.dbf

7 rows selected.

SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
SQL> 
SQL> 
SQL> EXIT
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.5.0.24.07
发表在 Oracle安装升级 | 标签为 , | 留下评论

win平台安装oracle遭遇INS-30131处理

客户在win平台上安装11.2.0.4 client遭遇到 [INS-30131]执行安装程序验证所需的初始设置失败(原因:无法访问临时位置)
ins-30131


根据官方描述这个问题(Bug 21452473 – Windows: INS-30131 while Installing 12.1.0.2 Database/Client on Windows (Doc ID 21452473.8))是由于c盘没有被共享的原因,解决方案:
1)启用c盘共享;2)使用ignorePrereq 参数跳过检测

Symptoms:
 While performing 12.1.0.2 Database or Client installations on windows install will fail with following error:
 
 [INS-30131] Initial setup required for the execution of installer validations failed and unable to proceed 
 
 At the command prompt net use will return the following error :
 
  net use \\hostname\c$ 
  ^
  System error 53 has occurred
  The network path was not found. 
 
Cause :
 The error is caused due to Administrative share disabled . If they cannot be enabled perform the following workaround.
 
Workaround :
 For client software  installations, run the installer with following args:
 
 setup.exe -ignorePrereq -J"-Doracle.install.client.validate.clientSupportedOSCheck=false" 
 
 For Database Installation, run the installer with following args:
 
 setup.exe -ignorePrereq -J"-Doracle.install.db.validate.supportedOSCheck=false"
发表在 Oracle安装升级 | 标签为 , , , , | 留下评论

配置win环境ssh和sftp并实现免密登录

在某些情况下,需要在win环境中安装ssh,sftp等服务,可以考虑通过安装OpenSSH,下载地址:https://github.com/PowerShell/Win32-OpenSSH/releases,下载最新版OpenSSH-Win64.zip并解压
openssh安装服务

Microsoft Windows [版本 10.0.19045.3208]
(c) Microsoft Corporation。保留所有权利。

C:\Windows\system32>cd E:\OpenSSH-Win64

C:\Windows\system32>e:

E:\OpenSSH-Win64>powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
  [*] E:\OpenSSH-Win64\moduli
Inheritance is removed from 'E:\OpenSSH-Win64\moduli'.
'NT AUTHORITY\Authenticated Users' now has Read access to 'E:\OpenSSH-Win64\moduli'.
'BUILTIN\Users' now has Read access to 'E:\OpenSSH-Win64\moduli'.
      Repaired permissions

  [*] C:\ProgramData\ssh
      looks good

[SC] SetServiceObjectSecurity 成功
[SC] ChangeServiceConfig2 成功
[SC] ChangeServiceConfig2 成功
sshd and ssh-agent services successfully installed
Updated Machine PATH to include OpenSSH directory, restart/re-login required to take effect globally

E:\OpenSSH-Win64>net start sshd
OpenSSH SSH Server 服务正在启动 ..
OpenSSH SSH Server 服务已经启动成功。

E:\OpenSSH-Win64>ssh -V
OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

设置服务为自动启动
openssh


也可以可以通过cmd命令设置:sc config sshd start= auto

配置免密登录
1)修改C:\ProgramData\ssh\ssh_config文件

PubkeyAuthentication yes
AuthorizedKeysFile %programdata%/ssh/administrators_authorized_keys

2)拷贝C:\ProgramData\ssh\ssh_host_rsa_key为C:\ProgramData\ssh\administrators_authorized_keys
3)下载ssh_host_rsa_key和ssh_host_rsa_key.pub文件,放到其他机器的C:\Users\用户名\.ssh目录中并重命名为id_rsa和id_rsa.pub

测试其他机器免密ssh/sftp登录

C:\Users\XFF>ssh xifenfei@192.168.222.2
Microsoft Windows [版本 10.0.19045.3208]
(c) Microsoft Corporation。保留所有权利。

xifenfei@DESKTOP-3PQ0P6C C:\Users\xifenfei>exit
Connection to 192.168.222.2 closed.

C:\Users\XFF>sftp xifenfei@192.168.222.2
Connected to 192.168.222.2.
sftp> pwd
Remote working directory: /C:/Users/xifenfei
发表在 操作系统 | 标签为 , , , | 留下评论