Oracle DB sqlplus问题[关闭](Oracle DB sqlplus issue [closed])
我在本地PC上安装了Oracle Server DB 11g 11.2.0.1.0版。
当我尝试使用sqldeveloper运行命令
select * from idc_geraet
,我得到了预期的结果,但是如果我用sqlplus运行相同的命令,我会收到一条错误,说没有选择任何行。 我使用相同的架构(scott)登录。当我运行命令
select * from idc_person
我得到了两个程序的预期结果 - sqlplus和sqldeveloper。 怎么可能?谢谢你的帮助,阿明
I have a Oracle Server DB 11g Release 11.2.0.1.0 installed on my local pc.
When i try to run the command
select * from idc_geraet
with sqldeveloper i get the expected result, but if i run the same command with sqlplus i get an error saying that no rows are selected. I'm logged in at both with the same schema (scott).When i run the command
select * from idc_person
i get the expected result with both programms - sqlplus and sqldeveloper. How is that possible?thanks for your help, Armin
原文:
最满意答案
virtualenv默认情况下不允许您从全局环境导入包。 使用
[mk]virtualenv --system-site-packages
允许它导入系统包。
python-dev
是一个系统包,所以预计会出现pip
错误。 不确定apt错误,但你可以在askubuntu.com上询问尝试解决它。virtualenv by default doesn't let you import packages from the global environment. Use
[mk]virtualenv --system-site-packages
to allow it to import system packages.
python-dev
is a system package, so thepip
error is expected. Not sure about the apt error, but you could ask on askubuntu.com to try to resolve it.
相关问答
更多-
在Virtualenv和PyCharm中用python 2.7导入OpenCV(Importing OpenCV with python 2.7 in Virtualenv and PyCharm)[2022-05-22]
您的cv2.so位于不同的目录中。 而你从另一个目录激活。 我的意思是cv_env和cv 。 Your cv2.so located in a different directory. And you activating from another directory. I mean cv_env and cv. -
能够回答我自己的问题。 要正确安装python dev我需要: sudo yum install python27-devel Was able to answer my own question. To install the python dev correctly I needed: sudo yum install python27-devel
-
如何使用Pacman在virtualenv中安装的NumPy?(How to use the NumPy installed by Pacman in virtualenv?)[2022-01-29]
您可以使用--system-site-packages开关创建virtualenv,以使用除stdlib中安装的软件包之外的系统范围的软件包。 You can create the virtualenv with the --system-site-packages switch to use system-wide packages in addition to the ones installed in the stdlib. -
您需要将PYTHON_MAC (或PYTHON_WIN )的位置设置为virtualenv的位置。 例如PYTHON_MAC = ".../env/bin/python" 。 You need to set the location of PYTHON_MAC (or PYTHON_WIN) to the location of your virtualenv. E.g. PYTHON_MAC = ".../env/bin/python".
-
您需要在运行脚本之前激活虚拟环境。 脚本可以是您想要的任何位置。 例如,终端应在运行代码之前显示虚拟环境名称。 You need to activate the virtual environment before running the script. The script can be wherever you want it to be. For example the terminal should show the virtual environment name before you run t ...
-
Twilio开发者传道者在这里。 在Twilio Python库的第6版中, 可以在twilio.base.exceptions找到twilio.base.exceptions 。 所以你要: >>> from twilio.base.exceptions import TwilioRestException Twilio developer evangelist here. In version 6 of the Twilio Python library, TwilioRestException ca ...
-
好的,我发现了这个问题。 事实证明,即使我的virtualenv处于活动状态(请参阅上面屏幕交互片段中命令行提示的(base)前缀),我仍然需要告诉pip使用它。 例如运行类似的东西之后 pip -E /path/to/virtualenv install numpy 那么在交互式python会话中导入numpy会成功(不管导入的模块是否可用,我还不知道)。 这是荒谬的:我的virtualenv是活跃的,我运行的pip可执行文件是安装在virtualenv中的文件 : (base)[1801] which ...
-
尝试使用 #!/usr/bin/env python 作为shebang。 如果这不起作用,请尝试查看which python的输出。 Try using #!/usr/bin/env python as the shebang. If that does not work, try seeing what is the output of which python.
-
virtualenv默认情况下不允许您从全局环境导入包。 使用[mk]virtualenv --system-site-packages允许它导入系统包。 python-dev是一个系统包,所以预计会出现pip错误。 不确定apt错误,但你可以在askubuntu.com上询问尝试解决它。 virtualenv by default doesn't let you import packages from the global environment. Use [mk]virtualenv --system ...
-
检查您的PYTHONPATH环境变量,该变量可能指向您的旧版本软件包的位置。 此变量始终位于sys.path因此请确保清除它或将其更改为指向您激活的virtualenv。 Check your PYTHONPATH environment variable which probably points to where you have the older version of your package. This variable always comes first in your sys.path so ...