小编Gry*_*ryu的帖子

Oracle客户端ORA-12541:TNS:没有监听器

我是Oracle数据库的新手,但我有一个问题,现在我的数据库服务器(server1)监听器和数据库实例运行正常我可以使用sqlplus连接到这个数据库,但是当我使用其他服务器连接到数据库时,我检查TNS配置是否正确但是系统说错误:ORA-12541:TNS:没有监听器

我的数据库是Oracle 10gR2

那么我该如何解决这个问题呢?

oracle listener

67
推荐指数
4
解决办法
37万
查看次数

Xcode 12 Beta - 找不到模拟器运行时

我已经安装了 Xcode 12 beta 2。我尝试在 Mac OS Catalina 上通过 Jenkins 运行我们的 xamarin 项目。它因以下错误而失败。当我从 Mac Visual Studio 构建相同的项目时,它成功了,没有任何错误。

SplashViewController.storyboard : error :
 iOS 14.0 (14.0 - 18A5319g) - com.apple.CoreSimulator.SimRuntime.iOS-14-0 (unavailable, failed to open liblaunchsim.dylib) ==> not available:
  Error Domain=com.apple.CoreSimulator.SimError Code=401 "The iOS 14.0 simulator runtime is not available."
  UserInfo={NSLocalizedDescription=The iOS 14.0 simulator runtime is not available.,
   NSUnderlyingError=0x7fef8847b520 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort"
  UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff97d649a0> { count = 1, transaction: 0, voucher = 0x0,_
Run Code Online (Sandbox Code Playgroud)

我还 …

xcode simulator ios xcode12

10
推荐指数
1
解决办法
2428
查看次数

Ubuntu 20.04 中的 Pyqt4

如何在 ubuntu 20.04 中安装 Pyqt4
我已经尝试了所有命令:

sudo apt-get install python-qt4
sudo apt-get install libqt4-dev
sudo apt-get install pyqt4-dev-tools
sudo apt-get install pyqt4.qsci-dev
sudo apt install python3-pyqt4
Run Code Online (Sandbox Code Playgroud)

但它一直说模块没有安装候选,虽然pyqt5运行顺利,但代码太长,无法将其更改为pyqt5

installation ubuntu pyqt4 ubuntu-20.04

6
推荐指数
1
解决办法
2万
查看次数

使用sql server表在oracle中创建表

我在sql server 2008 r2中有一个表,它包含1M或更多记录现在我想在oracle中创建与sql中相同内容的表.

sql-server oracle data-transfer oracle10g sql-server-2008

5
推荐指数
1
解决办法
1864
查看次数

亚马逊 ec2 上的 NRPE 远程主机设置

我一直在尝试使用 Nagios-Nrpe 监视远程服务器。远程主机是 Amazon Ec2 实例,我在 xinetd 上安装了 npre 守护程序。

  • 我已将我的 nagios 服务器 IP 添加到文件中的“仅来自”属性/etc/xinet.d/nrpe
  • 我在/etc/services.
  • 我也进行了更改iptables
  • 5666也在我的安全组中为 TCP 端口添加了一个条目。

这些命令正常工作:

$ netstat -at | grep nrpe 
$usr/local/nagios/libexec/check_nrpe -H localhost
Run Code Online (Sandbox Code Playgroud)

我已经在本地机器上设置了 nagios 服务器和 nrpe_check 插件。但每当我做:

/usr/local/nagios/libexec/check_nrpe -H <"amazon-ec2-IP-address">
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

connect to address <"amazon-ec2-IP-address"> port 5666: Connection refused ......
connect to host <"amazon-ec2-IP-address"> port 5666: Connection refused
Run Code Online (Sandbox Code Playgroud)

我曾尝试在我的 LAN 上的另一个 linux 上制作 nrpe 客户端并且该命令有效,但不适用于 Amazon Ec2。

如果有人对此问题有解决方案,请尽快分享。

linux nagios amazon-ec2 nrpe

5
推荐指数
1
解决办法
1891
查看次数

备用 Jenkins 构建崩溃

每个备用 Jenkins 构建都会崩溃,并显示以下错误:

FATAL: null
java.lang.NullPointerException
    at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:123)
    at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:725)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:860)
    at hudson.scm.SCM.checkout(SCM.java:495)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
    at hudson.model.Run.execute(Run.java:1720)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)
Finished: FAILURE
Run Code Online (Sandbox Code Playgroud)

詹金斯版本:2.19.4

crash jenkins

5
推荐指数
0
解决办法
300
查看次数

Flutter - 设备上的 CupertinoActionSheet / CupertinoActionSheetAction 背景颜色与模拟器不同

我的 Scaffold 有深色背景色。

我正在使用showCupertinoModalPopup,CupertinoActionSheetCupertinoActionSheetAction用作孩子。

在模拟器中,操作表如下所示:

照片.

当我在我的实际 iphone 上运行该应用程序时,它看起来像这样:

照片

模拟中的操作表项目看起来是正确的。外观非常白。

但是,在设备上,在设备上更加透明,因此更难看到。

两个都 CupertinoActionSheetCupertinoActionSheetAction没有颜色或透明度级属性

关于这里发生了什么的任何想法?


颤振医生:

Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel beta, v0.11.7, on Mac OS X 10.13.6 17G65, locale en-US)
[?] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[?] iOS toolchain - develop for iOS devices (Xcode 10.1)
[?] Android Studio (version 3.2)
[?] VS Code (version 1.29.0)
[?] Connected …
Run Code Online (Sandbox Code Playgroud)

flutter

5
推荐指数
1
解决办法
1909
查看次数

How do I remove a row from recyclerview using room?

I'm trying to delete an row of recyclerview using room.im doing swipe to delete a particular row....

Here is my Address table-->

@Entity(tableName = "address")
 class Address {
@PrimaryKey(autoGenerate = true)
var id = 0

@ColumnInfo(name = "address")
var address: String? = null
 }
Run Code Online (Sandbox Code Playgroud)

AddressDao:

@Dao
interface AddressDao {
@Insert
suspend fun addData(address: Address)

@Query("select * from address")
fun getAddressesWithChanges() :LiveData<MutableList<Address>>

@Query("SELECT EXISTS (SELECT 1 FROM address WHERE id=:id)")
suspend fun isAddressAdded(id: Int): Int

@Delete
suspend fun delete(address: Address)
  } …
Run Code Online (Sandbox Code Playgroud)

android delete-row android-recyclerview android-room android-livedata

5
推荐指数
1
解决办法
2839
查看次数

如何从android中的firebase获取对象?

我有这样的用户类

public class User{
int id;
String description;
String shortDescription;
String photo;

public int getId() {
    return id;
}

public void setId(int id) {
    this.id = id;
}

public String getDescription() {
    return description;
}

public void setDescription(String description) {
    this.description = description;
}

public String getShortDescription() {
    return shortDescription;
}

public void setShortDescription(String shortDescription) {
    this.shortDescription = shortDescription;
}

public String getPhoto() {
    return photo;
}

public void setPhoto(String photo) {
    this.photo = photo;
}
}
Run Code Online (Sandbox Code Playgroud)

我正在使用 FirebaseRecyclerAdapter 获取存储在我的 …

android firebase firebase-realtime-database

3
推荐指数
1
解决办法
594
查看次数

cURL 错误 60 - SSL 证书问题 - 无法获取本地颁发者

PHP版本:5.6

问题:我收到错误:

    cURL error 60: SSL certificate problem: unable to get local issuer certificate.
Run Code Online (Sandbox Code Playgroud)

我尝试解决此问题的步骤:

  • php -r "readfile('https://symfony.com/installer');" > symfony

    1. 从https://curl.haxx.se/ca/cacert.pem下载包含更新的证书列表的文件。

    2. 设置路径在php.ini curl.cainfo =D:\xampp_tomact\php\extras\ssl\cacert.pem openssl.cafile=D:\xampp_tomact\php\extras\ssl\cacert.pem

    3. 阿帕奇重启

    4. 然后我尝试用

      php symfony new my_project_name
      
      Run Code Online (Sandbox Code Playgroud)

我从链接中获得了帮助

http://symfony.com/doc/current/setup.html

cURL 错误 60:SSL 证书:无法获取本地颁发者证书

但没有一个解决方案在 xampp windows 中有效。
请建议

我再次尝试的步骤

  1. d:\xampp\htdocs> php -r "readfile('http://symfony.com/installer');" > symfony
  2. d:\xampp\htdocs\projects> php symfony
  3. symfony new my_project_name

执行上面第三条命令后出错:

    cURL error 60: SSL certificate problem: unable to get local issuer 
Run Code Online (Sandbox Code Playgroud)

安装 symfony 时仍然没有解决此错误。

我还关注了 symfony 文档

Symfony 文档图片

CMD命令图片

我也尝试过最后的解决方案:

PHP - SSL …

php ssl curl symfony

3
推荐指数
1
解决办法
2万
查看次数