EXP-00091 Exporting questionable statistics.

本文详细介绍了如何通过PL/SQL查询并设置数据库字符集参数NLS_CHARACTERSET,包括查询当前设置和调整环境变量的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、 查看db中的NLS_CHARACTERSET的值。 打开plsql 
select * from v$nls_parameters where parameter='NLS_CHARACTERSET'; 

PARAMETER                   VALUE 
------------------                  ----------------- 
1 NLS_CHARACTERSET        AL32UTF8 

2、根据查出的结果来设定exp的环境变量: 

set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 

设置临时环境变量

> py_config() python: C:/Users/HanRan/r-reticulate-venv/Scripts/python.exe libpython: C:/Users/HanRan/AppData/Local/Programs/Python/Python310/python310.dll pythonhome: C:/Users/HanRan/r-reticulate-venv version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Architecture: 64bit numpy: C:/Users/HanRan/r-reticulate-venv/Lib/site-packages/numpy numpy_version: 2.2.6 NOTE: Python version was forced by use_python() function > # 测试Python > np <- import("numpy") > print(np$array(c(1,2,3))) [1] 1 2 3 > save_image( + surface_plot, + file = "3d_plot.png", + width = 1200, # 像素宽度 + height = 800, # 像素高度 + scale = 2 # 缩放因子(提高分辨率) + ) Error in `save_image()`: ! The `plotly` Python package is required for static image exporting. ℹ Please install it via `reticulate::py_install('plotly')`. Run `rlang::last_trace()` to see where the error occurred. > #安装相应的包 > py_install("plotly") Using virtual environment "C:/Users/HanRan/r-reticulate-venv" ... + "C:/Users/HanRan/r-reticulate-venv/Scripts/python.exe" -m pip install --upgrade --no-user plotly Collecting plotly Using cached plotly-6.2.0-py3-none-any.whl.metadata (8.5 kB) Collecting narwhals>=1.15.1 (from plotly) Using cached narwhals-1.46.0-py3-none-any.whl.metadata (11 kB) Collecting packaging (from plotly) Using cached packaging-25.0-py3-none-any.whl.metadata (3.3 kB) Using cached plotly-6.2.0-py3-none-any.whl (9.6 MB) Using cached narwhals-1.46.0-py3-none-any.whl (373 kB) Using cached packaging-25.0-py3-none-any.whl (66 kB) Installing collected packages: packaging, narwhals, plotly Successfully installed narwhals-1.46.0 packaging-25.0 plotly-6.2.0 > py_install("kaleido") Using virtual environment "C:/Users/HanRan/r-reticulate-venv" ... + "C:/Users/HanRan/r-reticulate-venv/Scripts/python.exe" -m pip install --upgrade --no-user kaleido Collecting kaleido Using cached kaleido-1.0.0-py3-none-any.whl.metadata (5.6 kB) Collecting choreographer>=1.0.5 (from kaleido) Using cached choreographer-1.0.9-py3-none-any.whl.metadata (5.6 kB) Collecting logistro>=1.0.8 (from kaleido) Using cached logistro-1.1.0-py3-none-any.whl.metadata (2.6 kB) Collecting orjson>=3.10.15 (from kaleido) Using cached orjson-3.10.18-cp310-cp310-win_amd64.whl.metadata (43 kB) Requirement already satisfied: packaging in c:\users\hanran\r-reticulate-venv\lib\site-packages (from kaleido) (25.0) Collecting simplejson>=3.19.3 (from choreographer>=1.0.5->kaleido) Using cached simplejson-3.20.1-cp310-cp310-win_amd64.whl.metadata (3.4 kB) Using cached kaleido-1.0.0-py3-none-any.whl (51 kB) Using cached choreographer-1.0.9-py3-none-any.whl (51 kB) Using cached logistro-1.1.0-py3-none-any.whl (7.9 kB) Using cached orjson-3.10.18-cp310-cp310-win_amd64.whl (134 kB) Using cached simplejson-3.20.1-cp310-cp310-win_amd64.whl (75 kB) Installing collected packages: simplejson, orjson, logistro, choreographer, kaleido Successfully installed choreographer-1.0.9 kaleido-1.0.0 logistro-1.1.0 orjson-3.10.18 simplejson-3.20.1 > save_image( + surface_plot, + file = "3d_plot.png", + width = 1200, # 像素宽度 + height = 800, # 像素高度 + scale = 2 # 缩放因子(提高分辨率) + ) 错误于py_get_attr(x, name, FALSE): AttributeError: module 'kaleido' has no attribute 'scopes' Run `reticulate::py_last_error()` for details.
最新发布
07-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值