During registry installation, default schema fails to import with error, "gethostbyname_r: unable to find host" (Doc ID 1025837.1)

Last updated on JUNE 01, 2016

Applies to:

Sun Schema Runtime Environment (SRE) - Version 5.0.0 to 5.0.5u2 [Release 5.0]
Sun e*Gate - Version 4.1.2 to 4.5.3 [Release 4.1 to 4.5]
Oracle Solaris on SPARC (64-bit)
Checked for relevance on 03-May-2013

Symptoms

Import of default schema fails during registry installation after the username and password is entered:


******************************************************
Enter a password for Administrator:
Verify Administrator password:

Starting registry server
Please specify registry port number [23001]: 17000
Registry port number: 17000

/egate/server/bin/stcregd.exe -pr 17000 -pc 17001 -ln egate -ss -sa -bd /egate/server &

stcregd (Information): Service: created RC script /egate/rc3.d/S99stcregd_egate_ for /egate/server/bin/stcregd.exe
Please wait 30 seconds...

/egate/server/bin:/usr/bin:/etc:/opt/EMCpower/bin/64:/etc/emc/bin:.:/usr/ucb/


stcregd (Information): User: Added: egate (table: STC_REGISTRY_MODULE)
stcregd (Information): User: Added: EGATE (table: STC_REGISTRY_REGISTRY)
stcregd (Information): Bound query port: 17000
stcregd (Information): Bound client port: 17100
stcregd (Information): Bound CB port: 17001
stcregd (Information): ServiceMain(): Started


Press Enter/Return to continue:


To import default schema...

Press Enter/Return to continue:

stcregutil (Error): gethostbyname_r: unable to find host [egate]. Error: 1 - (from OS) Not owner
stcregutil (Error): gethostbyname failed to find host [egate]: success (0x00000000)
stcregutil (Error): Unable to find host: egate
stcregutil (Fatal): Unable to establish communication with Registry. Error: connection failed (0x20050000)
stcregutil (Error): gethostbyname_r: unable to find host [egate]. Error: 431400 - (from OS) Unknown error
stcregutil (Error): gethostbyname failed to find host [egate]: (from OS) Invalid argument (0x00000016)
stcregutil (Error): Unable to find host: egate
stcregutil (Fatal): Unable to establish communication with Registry. Error: connection failed (0x20050000)
connection failed
***********************************************

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms