Configuring Oracle Listener in OpenSuse Leap 15.0 - opensuse

Having trouble getting Oracle XE 18c installed on OpenSuse Leap 15.0... When running the configuration script:
joshua#linux-t1zu:~> sudo /etc/init.d/oracle-xe-18c configure
[sudo] password for root:
/bin/df: unrecognized option '--direct'
Try '/bin/df --help' for more information.
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration failed. Check log '/opt/oracle/cfgtoollogs/netca/netca_configure_out.log' for more details.
Here are the contents of the
/opt/oracle/cfgtoollogs/netca/netca_configure_out.log
joshua#linux-t1zu:~> cat /opt/oracle/cfgtoollogs/netca/netca_configure_out.log
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM0220.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM1730.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM1809.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
No valid IP Address returned for the host linux-t1zu.
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM2132.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM2548.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909226AM3717.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM0711.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM1138.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM2244.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM2635.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM4045.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM4142.log
Oracle Net Services configuration failed. The exit code is 1
Parsing command line arguments:
Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraHomeXE
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM4810.log
Oracle Net Services configuration failed. The exit code is 1
I see where it first says something along the lines of
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
So does this mean I need to configure localhost? If it is already not?
I'm honestly pretty much lost here. Any advice is greatly appreciated.

I was able to answer my own question.
Reading this page from the Oracle Docs in the Networking section, I edited my /etc/hosts file as suggested, adding my hostname. At first, I did not add it in the Short-Hostname column and that did not work. However, going back and adding it there worked.
So like this:
In the terminal, if the output of
hostname
was tomtom
then my /etc/host file looked like this in the specific applicable portion:
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 tomtom tomtom
Hope this answer helps any others facing this issue.

Related

JNDI configuration for Wso2 EI 7.1.0

I need a sample configuration to keep JNDI in Wso2 EI and those name can be reuse in DB report mediator.
Thanks,
Ajay Babu Maguluri.
Find the deployment.toml file, it is a data source from which other config file are templated.
An example configuration creating a jdbc datasource inside the deployment.toml with name jndi/MY_DATA is like:
[[datasource]]
id = "MY_DATA" # "WSO2_COORDINATION_DB"
url = "jdbc:mysql://localhost:3306/mydata"
username = "root"
password = "root"
driver = "com.mysql.jdbc.Driver"
optionally you can specify other jdbc properties just after the [[datasource]] section
[datasource.pool_options]
maxActive = 10
maxWait = 60000
minIdle = 0
testOnBorrow = true
defaultAutoCommit = true
validationInterval = 30000
testWhileIdle = true
timeBetweenEvictionRunsMillis = 5000
minEvictableIdleTimeMillis = 60000
removeAbandoned = true
logAbandoned = true
removeAbandonedTimeout = 180
validationQuery = "SELECT 1"

Terraform google_logging_project_sink 'Exclusions' unknown block type

I'm running the latest google provider and trying to use the example terraform registry code to create a log sink. However the exclusion block is unrecognized
I keep getting 'An argument named "exclusions" is not expected here'
Any ideas on where I am going wrong?
resource "google_logging_project_sink" "log-bucket" {
name = "my-logging-sink"
destination = "logging.googleapis.com/projects/my-project/locations/global/buckets/_Default"
exclusions {
name = "nsexcllusion1"
description = "Exclude logs from namespace-1 in k8s"
filter = "resource.type = k8s_container resource.labels.namespace_name=\"namespace-1\" "
}
exclusions {
name = "nsexcllusion2"
description = "Exclude logs from namespace-2 in k8s"
filter = "resource.type = k8s_container resource.labels.namespace_name=\"namespace-2\" "
}
unique_writer_identity = true
Showing that the version of Google provider is at the stated version in the comment below
$ terraform version
Terraform v0.12.29
+ provider.datadog v2.21.0
+ provider.google v3.44.0
+ provider.google-beta v3.57.0
Update: Have also tried 0.14 of Terraform and that makes no difference.
Error: Unsupported block type
on ..\..\..\..\modules\krtyen\datadog\main.tf line 75, in module "export_logs_to_datadog_log_sink":
75: exclusions {
Blocks of type "exclusions" are not expected here.
Releasing state lock. This may take a few moments...
[terragrunt] 2021/02/22 11:11:20 Hit multiple errors:
exit status 1
You have to upgrade you google provided. exclusions block has been added in version v3.44.0:
logging: Added support for exclusions options for google_logging_project_sink

Terraform Error: Argument or block definition required when I run TF plan

I have 2 rds instances being created and when running tf plan I am getting a terraform error regarding unsupported block type:
Error: Unsupported block type
on rds.tf line 85, in module "rds":
85: resource "random_string" "rds_password_dr" {
Blocks of type "resource" are not expected here.
Error: Unsupported block type
on rds.tf line 95, in module "rds":
95: module "rds_dr" {
Blocks of type "module" are not expected here.
This is my code in my rds.tf file:
# PostgreSQL RDS App Instance
module "rds" {
source = "git#github.com:************"
name = var.rds_name_app
engine = var.rds_engine_app
engine_version = var.rds_engine_version_app
family = var.rds_family_app
instance_class = var.rds_instance_class_app
# WARNING: 'terraform taint random_string.rds_password' must be run prior to recreating the DB if it is destroyed
password = random_string.rds_password.result
port = var.rds_port_app
"
"
# PostgreSQL RDS DR Password
resource "random_string" "rds_password_dr" {
length = 16
override_special = "!&*-_=+[]{}<>:?"
keepers = {
rds_id = "${var.rds_name_dr}-${var.environment}-${var.rds_engine_dr}"
}
}
# PostgreSQL RDS DR Instance
module "rds_dr" {
source = "git#github.com:notarize/terraform-aws-rds.git?ref=v0.0.1"
name = var.rds_name_dr
engine = var.rds_engine_dr
engine_version = var.rds_engine_version_dr
family = var.rds_family_dr
instance_class = var.rds_instance_class_dr
# WARNING: 'terraform taint random_string.rds_password' must be run prior to recreating the DB if it is destroyed
password = random_string.rds_password.result
port = var.rds_port_dr
"
"
I don't know why I am getting this? Someone please help me.
You haven't closed the module blocks (module "rds" and module "rds_dr"). You also have a couple of strange double-quotes at the end of both module blocks.
Remove the double-quotes and close the blocks (with }).

terraform gcp dataflow job is giving me error about name?

this is the terraform I am using.
provider "google" {
credentials = "${file("${var.credentials}")}"
project = "${var.gcp_project}"
region = "${var.region}"
}
resource "google_dataflow_job" "big_data_job" {
#name = "${var.job_name}"
template_gcs_path = "gs://dataflow-templates/wordcount/template_file"
#template_gcs_path = "gs://dataflow-samples/shakespeare/kinglear.txt"
temp_gcs_location = "gs://bucket-60/counts"
max_workers = "${var.max-workers}"
project = "${var.gcp_project}"
zone = "${var.zone}"
parameters {
name = "cloud_dataflow"
}
}
But I am getting this error.so how can i solve this problem:-
enter code here Error: Error applying plan:
1 error(s) occurred:
* google_dataflow_job.big_data_job: 1 error(s) occurred:
* google_dataflow_job.big_data_job: googleapi: Error 400: (4ea5c17a2a9d21ab): The workflow could not be created. Causes: (4ea5c17a2a9d2052): Found unexpected parameters: ['name' (perhaps you meant 'appName')], badRequest
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
In your code you've commented out the name argument, but name is required for this resource type.
Remove the leading # from this line
#name = "${var.job_name}"
You've also included name as a parameter to the dataflow template, but that example wordcount template does not have a name parameter, it only has inputFile and output:
inputFile The Cloud Storage input file path.
output The Cloud Storage output file path and prefix.
Remove this part:
parameters {
name = "cloud_dataflow"
}

NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation

I'm trying to setup a simple control+compute on a single ubuntu node. I'm using devstack. This is the command that fails:
neutron net-create --tenant-id 6fad6bf2ae9c49d3b19958abd59f3ce0 private-net
And the error is:
NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
here's my relevant config ml2 config:
[ml2]
tenant_network_types = flat
extension_drivers = port_security
type_drivers = flat
mechanism_drivers = openvswitch
[ml2_type_flat]
flat_networks = public-physical-net,private-physical-net,dpdk-physical-net
[ml2_type_vlan]
network_vlan_ranges = private-physical-net
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
vni_ranges = 1001:2000
[ml2_type_geneve]
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
[agent]
tunnel_types =
root_helper_daemon = sudo /usr/local/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[ovs]
datapath_type = system
bridge_mappings = public:br-ex
this is the ovs:
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port int-br-ex
Interface int-br-ex
type: patch
options: {peer=phy-br-ex}
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Port "p255p1"
Interface "p255p1"
Port phy-br-ex
Interface phy-br-ex
type: patch
options: {peer=int-br-ex}
ovs_version: "2.0.2"
The relevant section of local.conf:
# Do not use Nova-Network
disable_service n-net
# Enable Neutron
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3
Q_PLUGIN=ml2
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
## Neutron options
FIXED_RANGE="10.0.123.0/24"
NETWORK_GATEWAY=10.0.123.1 ##MY
FLOATING_RANGE="10.0.0.0/22"
Q_FLOATING_ALLOCATION_POOL=start=10.0.1.167,end=10.0.1.169
PUBLIC_NETWORK_GATEWAY="10.0.0.205"
Q_USE_SECGROUP=True
Q_L3_ENABLED=True
PUBLIC_INTERFACE=p255p1
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public-physical-net:br-ex
Q_ML2_PLUGIN_TYPE_DRIVERS=flat
Q_ML2_TENANT_NETWORK_TYPE=flat
ENABLE_TENANT_VLANS=False
ENABLE_TENANT_TUNNELS=False
PUBLIC_PHYSICAL_NETWORK=public-physical-net
PHYSICAL_NETWORK=private-physical-net
PUBLIC_NETWORK_NAME=public-net
PRIVATE_NETWORK_NAME=private-net
Q_ML2_PLUGIN_FLAT_TYPE_OPTIONS="flat_networks=public-physical-net,dpdk-physical-net,private-physical-net" # CH did not exist