{"id":1270,"date":"2018-05-09T13:23:32","date_gmt":"2018-05-09T12:23:32","guid":{"rendered":"https:\/\/dbafox.com\/?p=1270"},"modified":"2018-11-28T11:28:55","modified_gmt":"2018-11-28T10:28:55","slug":"linux-oracle-display-environment-variables-associated-to-a-process","status":"publish","type":"post","link":"https:\/\/dbafox.com\/?p=1270","title":{"rendered":"Linux &#8211; Oracle &#8211; Display Environment Variables Associated to a Process"},"content":{"rendered":"<h3>Find the process id &#8211; Example : Oracle Listener<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;grid@server01 admin]$ ps -ef|grep -i listen\r\ngrid     21687     1  0 Apr21 ?        00:20:28 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER_SCAN1 -no_crs_notify -inherit\r\ngrid     21938     1  0 Apr21 ?        00:32:52 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER -no_crs_notify -inherit\r\nroot     31840 31805  0 Apr21 ?        00:00:00 hald-addon-input: Listening on \/dev\/input\/event3 \/dev\/input\/event0 \/dev\/input\/event1\r\n68       32017 31805  0 Apr21 ?        00:00:00 hald-addon-acpi: listening on acpid socket \/var\/run\/acpid.socket\r\ngrid     32608 13797  0 14:21 pts\/5    00:00:00 grep -i listen\r\n<\/pre>\n<h3>Display the Environment Variables<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;grid@server01 admin]$ strings \/proc\/21938\/environ\r\n__CRS_ACTIVE_VERSION=12.2.0.1.0\r\n__CLSAGFW_TYPE_NAME=ora.mgmtlsnr.type\r\nCHECK_WRAP_TRACE=\/oracle\/gridbase\/crsdata\/debug\/oraagent_trace_needed.txt\r\nORA_CRS_HOME=\/oracle\/grid\/12.2\r\nTERM=linux\r\n__CRSD_CONNECT_STR=(ADDRESS=(PROTOCOL=IPC)(KEY=CRSD_IPC_SOCKET_11))\r\nNLS_LANG=AMERICAN_AMERICA.AL32UTF8\r\nCRF_HOME=\/oracle\/grid\/12.2\r\nGIPCD_PASSTHROUGH=false\r\nENVCMD=\/bin\/env\r\n__CRSD_AGENT_NAME=\/oracle\/grid\/12.2\/bin\/oraagent_grid\r\n_ORA_AGENT_ACTION=TRUE\r\n__CRSD_MSG_FRAME_VERSION=2\r\nLD_LIBRARY_PATH=\/oracle\/grid\/12.2\/lib:\/etc\/ORCLcluster\/lib\r\nWRAP_ENVFILE=\/oracle\/gridbase\/crsdata\/debug\/oraagent_env_20066.log\r\nSTART_MODE=\r\nFILEOWNER=\r\n__CLSAGENT_INCARNATION=2\r\nCRS_LIMIT_MEMLOCK=unlimited\r\nFILEOWNER_ID=\r\n__CRS_START_MODE=normal\r\nORACLE_BASE=\/oracle\/gbase\r\n.......\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Find the process id &#8211; Example : Oracle Listener &#x5B;grid@server01 admin]$ ps -ef|grep -i listen grid 21687 1 0 Apr21 ? 00:20:28 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER_SCAN1 -no_crs_notify -inherit grid 21938 1 0 Apr21 ? 00:32:52 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER -no_crs_notify -inherit root 31840 31805 &hellip; <a href=\"https:\/\/dbafox.com\/?p=1270\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19,28],"tags":[],"class_list":["post-1270","post","type-post","status-publish","format-standard","hentry","category-linux","category-oracle-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux - Oracle - Display Environment Variables Associated to a Process - dbafox<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbafox.com\/?p=1270\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux - Oracle - Display Environment Variables Associated to a Process - dbafox\" \/>\n<meta property=\"og:description\" content=\"Find the process id &#8211; Example : Oracle Listener &#x5B;grid@server01 admin]$ ps -ef|grep -i listen grid 21687 1 0 Apr21 ? 00:20:28 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER_SCAN1 -no_crs_notify -inherit grid 21938 1 0 Apr21 ? 00:32:52 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER -no_crs_notify -inherit root 31840 31805 &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbafox.com\/?p=1270\" \/>\n<meta property=\"og:site_name\" content=\"dbafox\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-09T12:23:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-28T10:28:55+00:00\" \/>\n<meta name=\"author\" content=\"Ray Fox\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ray Fox\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbafox.com\/?p=1270\",\"url\":\"https:\/\/dbafox.com\/?p=1270\",\"name\":\"Linux - Oracle - Display Environment Variables Associated to a Process - dbafox\",\"isPartOf\":{\"@id\":\"https:\/\/dbafox.com\/#website\"},\"datePublished\":\"2018-05-09T12:23:32+00:00\",\"dateModified\":\"2018-11-28T10:28:55+00:00\",\"author\":{\"@id\":\"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb\"},\"breadcrumb\":{\"@id\":\"https:\/\/dbafox.com\/?p=1270#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbafox.com\/?p=1270\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbafox.com\/?p=1270#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbafox.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux &#8211; Oracle &#8211; Display Environment Variables Associated to a Process\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbafox.com\/#website\",\"url\":\"https:\/\/dbafox.com\/\",\"name\":\"dbafox\",\"description\":\"DBA Technical Information\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbafox.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb\",\"name\":\"Ray Fox\",\"sameAs\":[\"http:\/\/www.dbafox.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux - Oracle - Display Environment Variables Associated to a Process - dbafox","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbafox.com\/?p=1270","og_locale":"en_GB","og_type":"article","og_title":"Linux - Oracle - Display Environment Variables Associated to a Process - dbafox","og_description":"Find the process id &#8211; Example : Oracle Listener &#x5B;grid@server01 admin]$ ps -ef|grep -i listen grid 21687 1 0 Apr21 ? 00:20:28 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER_SCAN1 -no_crs_notify -inherit grid 21938 1 0 Apr21 ? 00:32:52 \/oracle\/grid\/12.2\/bin\/tnslsnr LISTENER -no_crs_notify -inherit root 31840 31805 &hellip; Continue reading &rarr;","og_url":"https:\/\/dbafox.com\/?p=1270","og_site_name":"dbafox","article_published_time":"2018-05-09T12:23:32+00:00","article_modified_time":"2018-11-28T10:28:55+00:00","author":"Ray Fox","twitter_misc":{"Written by":"Ray Fox","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dbafox.com\/?p=1270","url":"https:\/\/dbafox.com\/?p=1270","name":"Linux - Oracle - Display Environment Variables Associated to a Process - dbafox","isPartOf":{"@id":"https:\/\/dbafox.com\/#website"},"datePublished":"2018-05-09T12:23:32+00:00","dateModified":"2018-11-28T10:28:55+00:00","author":{"@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb"},"breadcrumb":{"@id":"https:\/\/dbafox.com\/?p=1270#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbafox.com\/?p=1270"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dbafox.com\/?p=1270#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbafox.com\/"},{"@type":"ListItem","position":2,"name":"Linux &#8211; Oracle &#8211; Display Environment Variables Associated to a Process"}]},{"@type":"WebSite","@id":"https:\/\/dbafox.com\/#website","url":"https:\/\/dbafox.com\/","name":"dbafox","description":"DBA Technical Information","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbafox.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/dbafox.com\/#\/schema\/person\/287adc474c1aebd398752ac4dcfe27eb","name":"Ray Fox","sameAs":["http:\/\/www.dbafox.com"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3ecMb-ku","_links":{"self":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/1270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1270"}],"version-history":[{"count":5,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/1270\/revisions"}],"predecessor-version":[{"id":1380,"href":"https:\/\/dbafox.com\/index.php?rest_route=\/wp\/v2\/posts\/1270\/revisions\/1380"}],"wp:attachment":[{"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbafox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}