我在Win7 x64机器上安装了Oracle XE.安装成功完成没有问题,或者安装程序没有告诉他们.但安装后我无法连接到数据库; 它的网络界面不起作用.我查看了开放端口列表,并且没有安装过程中注意到的8080端口.我也无法通过SQLPlus连接.
SQL> connect SYSTEM
Enter password:
ERROR:
ORA-12638: Credential retrieval failed
Run Code Online (Sandbox Code Playgroud)
在网络的某个地方,它被告知编辑sqlnet.ora文件,我已经通过以下方式更改了它:
# SQLNET.AUTHENTICATION_SERVICES = (NTS)
SQLNET.AUTHENTICATION_SERVICES = (NONE)
Run Code Online (Sandbox Code Playgroud)
现在我得到下一个错误
SQL> connect SYSTEM
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Run Code Online (Sandbox Code Playgroud)
我需要更改什么才能连接到它?
我创建了自己的目标定义.它一直运作到现在.今天我打开了这个目标定义,并且我在那里找到了所有软件站点的跟随错误:
Unable to locate installable unit <unit name>
Run Code Online (Sandbox Code Playgroud)
目标定义文件如下所示:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>
<target name="indigo" sequenceNumber="20">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242"/>
<unit id="org.eclipse.zest.sdk.feature.group" version="1.3.0.v20110425-2050-67C18COMPIAKSVKGQaRTQTiSN8WP"/>
<unit id="org.eclipse.zest.source.feature.group" version="1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242"/>
<repository location="http://download.eclipse.org/releases/indigo"/>
</location>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.jdt.feature.group" version="3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1"/>
<unit id="org.eclipse.jdt.source.feature.group" version="3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1"/>
<unit id="org.eclipse.pde.source.feature.group" version="3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0"/>
<unit id="org.eclipse.platform.sdk" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.rcp.id" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.rcp.sdk.id" version="3.7.2.M20120208-0800"/>
<repository location="http://download.eclipse.org/eclipse/updates/3.7"/>
</location>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.egit.feature.group" version="1.3.0.201202151440-r"/>
<unit id="org.eclipse.egit.source.feature.group" version="1.3.0.201202151440-r"/>
<unit id="org.eclipse.jgit.feature.group" version="1.3.0.201202151440-r"/>
<unit id="org.eclipse.jgit.source.feature.group" version="1.3.0.201202151440-r"/>
<repository …Run Code Online (Sandbox Code Playgroud) 我在web xml中又出现了一个错误
- 不要将名称'javaee:web-appType'解析为(n)'类型定义'组件.
和web.xml文件
<?xml version="1.0" encoding="UTF-8"?><!--error here-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
Run Code Online (Sandbox Code Playgroud) 有这样的电话
some_proc(sysdate, sysdate);
select some_func(sysdate, sysdate) from dual
Run Code Online (Sandbox Code Playgroud)
我想知道两个sysdate调用是否有可能给出不同的值?sysdate是否仅因执行速度而改变?
我在spring上下文中初始化了datasource bean.我想知道应该采用什么方式?为什么我只是不能写dataSource.getConnection()?
我在存储库中有相当多的文件.因此,在变基改变期间,由于内存不足异常,git有时会崩溃.
例如
git checkout feature
git rebase master
(nasty out of memory exception)
.....
Run Code Online (Sandbox Code Playgroud)
所以一旦我得到了那个例外,我再次尝试变基
git rebase master
Run Code Online (Sandbox Code Playgroud)
它告诉我,分支feature是最新的.这看起来很奇怪,因为rebase以异常结束.
有没有办法避免异常?可能会以某种方式告诉git使用较少的内存量.此异常可能是存储库损坏的原因吗?如果它导致损坏,有没有什么方法可以安全地将在rebase期间所做的更改回滚到之前git rebase master调用的状态?
有一个具有以下结构的 jar 文件:
/--
|-dir1
|-file1
|-file2
|-file3
|-dir2
|-dir3
Run Code Online (Sandbox Code Playgroud)
我将过滤器设置为仅从 dir1 获取文件
/--
|-dir1
|-file1
|-file2
|-file3
|-dir2
|-dir3
Run Code Online (Sandbox Code Playgroud)
它成功地仅从该目录中获取文件,但在目标目录中复制的文件放置在 dir1 中,如何从复制的文件中删除路径并仅保留名称。所以file1将被复制到target/file1而不是target/dir1/file1
<includes>dir1/*</includes>
Run Code Online (Sandbox Code Playgroud) 我不时在需要大量内存的eclipse任务中运行.所以jvm在任务运行时吞下大约2-3GB的RAM,没关系.但是一旦jvm占用了那个内存它就不会释放它而且我有一种情况,当堆中使用的内存大约是200mb,总堆大小约为3gb时,这真的是不需要的,因为其他程序正在挨饿.
我尝试了Max/MinHeapFreeRatio参数来强制jvm减少未使用内存的消耗.那是我的eclipse config.ini文件:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-vm
c:/Program Files/Java/jdk1.6.0_26/bin/javaw.exe
-showlocation
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Duser.name=Michael Nesterenko
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx4096m
-XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=30
Run Code Online (Sandbox Code Playgroud)
但这没有用,我仍然有很多未使用的内存.
变量初始化我有一个奇怪的问题.
有以下代码:
public void test()
{
StringBuilder buf;
org.junit.Assert.assertFalse((buf = new StringBuilder("qwe3")).toString().isEmpty());
org.junit.Assert.assertEquals("", buf.toString()); // The local variable buf may not have been initialized
}
Run Code Online (Sandbox Code Playgroud)
什么???变量被初始化,出了什么问题?
当我org.junit.Assert.assertFalse改为我自己的本地方法时,错误消失了.
private static void assertFalse(final boolean o) throws Exception
{
}
Run Code Online (Sandbox Code Playgroud)
如果重要的话,我正在使用jdk 1.7.0_51.类代码在这里